public static string DecryptPass(byte[] array) { CryptoDES objCryptoDES = new CryptoDES(); objCryptoDES.Initialize(); string info = ByteArrayToStr(array); info = objCryptoDES.DESSelfDecrypt(info); return(info); }
public static byte[] EncryptPass(string pass) { try { CryptoDES objCryptoDES = new CryptoDES(); objCryptoDES.Initialize(); string encryptSTR = objCryptoDES.DESSelfEncrypt(pass); byte[] contents = StrToByteArray(encryptSTR); return(contents); } catch (Exception oEx) { LoggingHelper.ShowMessage(oEx); return(null); } }
public static string DecryptPass(byte[] array) { CryptoDES objCryptoDES = new CryptoDES(); objCryptoDES.Initialize(); string info = ByteArrayToStr(array); info = objCryptoDES.DESSelfDecrypt(info); return info; }
public static byte[] EncryptPass(string pass) { try { CryptoDES objCryptoDES = new CryptoDES(); objCryptoDES.Initialize(); string encryptSTR = objCryptoDES.DESSelfEncrypt(pass); byte[] contents = StrToByteArray(encryptSTR); return contents; } catch (Exception oEx) { LoggingHelper.ShowMessage(oEx); return null; } }
public CustomCookies() { objCryptoDES.Initialize(); }