Exemple #1
0
        public static string GetHashAsBase64String(string data)
        {
            var h = GetHash(data);

            return(CryptoHelper.BytesToString64(h));
        }
        public static string EncodeToBase64(this ISimpleCryptoProvider c, byte[] data, byte[] key)
        {
            var encBytes = c.Encode(data, key);

            return(CryptoHelper.BytesToString64(encBytes));
        }