步骤 1: 生成RSA密钥
首先,我们需要生成一个RSA密钥对,用于加密和解密。
using System;
using System.Security.Cryptography;
using System.Xml;public class XmlEncryptionExample
{public static RSAParameters publicKey;public static RSAParamet…
1.hset
格式: hset key field value [field value ...](value是字符串)
返回值:设置成功的键值对的个数
2.hget:获取键值对
格式:hget key field
3.hexists:判断hash中是否存在指定
格式:…