Ejemplo n.º 1
0
        public static string Encrypt(this IJObjectCrypto jObjectCrypto, Stream stream, string publicKey)
        {
            var publicKeyBytes = HexConverter.HexToBinary(publicKey);

            return(jObjectCrypto.Encrypt(stream, publicKeyBytes));
        }
Ejemplo n.º 2
0
        public static void Encrypt(this IJObjectCrypto jObjectCrypto, JObject jObject, string publicKey)
        {
            var publicKeyBytes = HexConverter.HexToBinary(publicKey);

            jObjectCrypto.Encrypt(jObject, publicKeyBytes);
        }
Ejemplo n.º 3
0
        public static string EncryptJson(this IJObjectCrypto jObjectCrypto, string json, string publicKey)
        {
            var publicKeyBytes = HexConverter.HexToBinary(publicKey);

            return(jObjectCrypto.EncryptJson(json, publicKeyBytes));
        }