密码混淆

This commit is contained in:
saplf
2019-09-06 23:21:12 +08:00
parent 3c2edc1967
commit b731ee054c
6 changed files with 45 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
import BigNumber from 'bignumber.js';
import _ from 'lodash';
import md5 from 'md5';
import { AreaCode, Estate } from '@/types/common';
export function encodePhone(code: AreaCode, phone: string): string {
@@ -41,3 +42,7 @@ export function fromLangToText(lang: string) {
const target = _.find(supportedLangs, { lang });
return target && target.text;
}
export function encryptPwd(pwd: string): string {
return md5(pwd);
}