public static byte[] Decrypt(this byte[] encrypted, int beginOffset, int count, FAesKey key) { return(Provider.CreateDecryptor(key.Key, null).TransformFinalBlock(encrypted, beginOffset, count)); }
public static byte[] Decrypt(this byte[] encrypted, FAesKey key) { return(Provider.CreateDecryptor(key.Key, null).TransformFinalBlock(encrypted, 0, encrypted.Length)); }