/// <summary> /// 得到唯一实例。 /// </summary> /// <returns>EncryptSingleton实例。</returns> public static EncryptSingleton GetInstance() { if (encryptSingleton == null) { encryptSingleton = new EncryptSingleton(); } return(encryptSingleton); }
/// <summary> /// 加密密码。 /// </summary> /// <param name="pwd">密码</param> /// <returns>加密后的密码</returns> public string EncryptPWD(string pwd) { return(EncryptSingleton.GetInstance().GetEncryptedString(pwd)); }