Skip to content

XiaoFeng.Cryptography 加密算法库

Jacky edited this page Nov 22, 2023 · 2 revisions

1. XiaoFeng.Cryptography.AESEncryption AES 算法

2. XiaoFeng.Cryptography.DESEncryption DES 算法

3. XiaoFeng.Cryptography.DES3Encryption DES3 算法

4. XiaoFeng.Cryptography.RC4Encryption RC4 算法

5. XiaoFeng.Cryptography.SM4Encryption SM4 算法

6. XiaoFeng.Cryptography.SimpleHashEncryption SimpleHash 算法

7. XiaoFeng.Cryptography.SHAEncryption SHA 算法

8. XiaoFeng.Cryptography.HMACEncryption HMAC 算法

9. XiaoFeng.Cryptography.RSAEncryption RSA 算法

10. XiaoFeng.Cryptography.ELFEncryption ELF 算法

加密算法方法名为 Encrypt

解密算法方法名为 Decrypt

快捷扩展方法

var a = "a".MD5(32);
var b = "b".AESEncrypt("a");
var c = "c".DES3Encrypt("a");
var d = c.AESDecrypt("aaaa");