Beispiel #1
0
        public string Decrypt(string userId, string source)
        {
            var secret = cryptoRepository.GetAesKeyByUserId(userId);

            if (!string.IsNullOrEmpty(secret))
            {
                var decrypted = DecryptCore(source, secret);
                return(decrypted);
            }
            return(source);
        }