Exemplo n.º 1
0
        public static string DecryptPass(byte[] array)
        {
            CryptoDES objCryptoDES = new CryptoDES();

            objCryptoDES.Initialize();
            string info = ByteArrayToStr(array);

            info = objCryptoDES.DESSelfDecrypt(info);
            return(info);
        }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
		public static string DecryptPass(byte[] array)
		{
			CryptoDES objCryptoDES = new CryptoDES();
			objCryptoDES.Initialize();
			string info = ByteArrayToStr(array);
			info = objCryptoDES.DESSelfDecrypt(info);
			return info;
		}
Exemplo n.º 4
0
		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;
			}

		}
Exemplo n.º 5
0
 public CustomCookies()
 {
     objCryptoDES.Initialize();
 }