public static string ValidatedDecode(string data)
        {
            if (string.IsNullOrEmpty(data))
            {
                return(null);
            }

            var bytes    = CryptoHelper.String64ToBytes(data);
            var decBytes = ValidatedDecode(bytes);

            if (decBytes == null)
            {
                return(null);
            }

            var str = CryptoHelper.BytesToString(decBytes);

            return(str);
        }
        public static string DecodeStringFromBase64(this ISimpleCryptoProvider c, string data, byte[] key)
        {
            var decBytes = c.DecodeFromBase64(data, key);

            return(CryptoHelper.BytesToString(decBytes));
        }