public static string Encrypt(this IJObjectCrypto jObjectCrypto, Stream stream, string publicKey) { var publicKeyBytes = HexConverter.HexToBinary(publicKey); return(jObjectCrypto.Encrypt(stream, publicKeyBytes)); }
public static void Encrypt(this IJObjectCrypto jObjectCrypto, JObject jObject, string publicKey) { var publicKeyBytes = HexConverter.HexToBinary(publicKey); jObjectCrypto.Encrypt(jObject, publicKeyBytes); }
public static string EncryptJson(this IJObjectCrypto jObjectCrypto, string json, string publicKey) { var publicKeyBytes = HexConverter.HexToBinary(publicKey); return(jObjectCrypto.EncryptJson(json, publicKeyBytes)); }