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

            return(c.Decode(bytes, key));
        }
Exemple #2
0
        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));
        }