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