예제 #1
0
        public static string DecryptPass(byte[] array)
        {
            CryptoDES objCryptoDES = new CryptoDES();

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

            info = objCryptoDES.DESSelfDecrypt(info);
            return(info);
        }
예제 #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);
     }
 }
예제 #3
0
파일: Helper.cs 프로젝트: erdincay/db4o
		public static string DecryptPass(byte[] array)
		{
			CryptoDES objCryptoDES = new CryptoDES();
			objCryptoDES.Initialize();
			string info = ByteArrayToStr(array);
			info = objCryptoDES.DESSelfDecrypt(info);
			return info;
		}
예제 #4
0
파일: Helper.cs 프로젝트: erdincay/db4o
		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;
			}

		}
예제 #5
0
 public CustomCookies()
 {
     objCryptoDES.Initialize();
 }