public static string GetLock_L(string password) { string lock_password = string.Empty; foreach (char str in password) { lock_password = str + RandomStr.NextString(random, 1, false) + lock_password;//倒序 } return(MyAlgorithm.Encode(lock_password)); }
public static string GetLock(string password, string ckey) { string lock_password = string.Empty; foreach (char str in password) { lock_password = str + "." + lock_password;//倒序 } lock_password = RandomStr.NextString(random, 1, false) + lock_password + RandomStr.NextString(random, 1, false);//前后任意添加1位大写字符 return(MyAlgorithm.Encrypt(lock_password, ckey)); }