密码混淆
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user