Esempio n. 1
0
 public string Dec(String s, String Key)
 {
     byte[] sData   = Convert.FromBase64String(s);
     byte[] seedKey = Encoding.Default.GetBytes(Key);
     return(Encoding.UTF8.GetString(SEED.Decrypt(sData, seedKey)));
 }
Esempio n. 2
0
 public static byte[] Decrypt(byte[] Data, byte[] seedKey)
 {
     return(SEED.Decrypt(Data, seedKey, true));
 }
Esempio n. 3
0
 public static IEnumerable <byte> DecryptWithSeed(this IEnumerable <byte> data,
                                                  IEnumerable <byte> seedKey,
                                                  bool cbcPad = true)
 => SEED.Decrypt(data.ToArray(), seedKey.ToArray(), cbcPad);