摘要: #region aes解密 private static readonly Encoding CHARSET = Encoding.UTF8; /// <summary> /// 解密给定的AES加密文本 /// </summary> /// <param name="text">需要解密的文本</ 阅读全文
posted @ 2023-05-09 11:09 左耳* 阅读(61) 评论(0) 推荐(0) 编辑
摘要: var rsaPrivate = PEMToXML_All(_Config.RSAPrivate);//私钥_Config.RSAPrivate #region PEM转XML /// <summary> /// PEM格式的密钥转XML格式 /// </summary> /// <param na 阅读全文
posted @ 2023-05-09 11:05 左耳* 阅读(320) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取时间戳 /// </summary> /// <returns></returns> public static string GetTimeStamp() { TimeSpan ts = DateTime.UtcNow - new DateTime(1970 阅读全文
posted @ 2023-05-09 10:57 左耳* 阅读(74) 评论(0) 推荐(0) 编辑