Beispiel #1
0
 public static string Decrypt(Algorithm algorithm, string symmetricKey, string token, string content)
 {
     if (algorithm == Algorithm.AES)
     {
         content = AES.Decrypt(symmetricKey, content, token);
     }
     else if (algorithm == Algorithm.RIJ)
     {
         content = RIJ.Decrypt(symmetricKey, content, token);
     }
     else if (algorithm == Algorithm.DES)
     {
         content = TDES.Decrypt(symmetricKey, content, token);
     }
     else
     {
         content = string.Empty;
     }
     return(content);
 }