public static byte[] DecodeFromBase64(this ISimpleCryptoProvider c, string data, byte[] key) { var bytes = CryptoHelper.String64ToBytes(data); var decBytes = c.Decode(bytes, key); return(decBytes); }
public static byte[] Decode(this ISimpleCryptoProvider c, string data, byte[] key) { var bytes = CryptoHelper.StringToBytes(data); return(c.Decode(bytes, key)); }