Exemplo n.º 1
0
 public static String Encrypt(this string Text)
 {
     try
     {
         String Ecrypted = CryptoClass.EncryptPlainTextToCipherText(Text);
         return(Ecrypted);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public static String EncryptID(this Int64 ID)
 {
     try
     {
         string EcryptedApplicantID = CryptoClass.EncryptPlainTextToCipherText(ID.ToString());
         EcryptedApplicantID = EcryptedApplicantID.Replace("/", "~");
         EcryptedApplicantID = EcryptedApplicantID.Replace("\\", "`");
         return(EcryptedApplicantID);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }