什么是mcrypt?
mcrypt是一个用于加密和解密数据的PHP扩展库。它提供了一系列的加密算法,包括对称加密算法、非对称加密算法和哈希算法。mcrypt可以用于保护敏感数据的安全性,例如密码、银行卡信息等。
mcrypt支持的加密算法包括:
- 对称加密算法:AES、Blowfish、CAST-128、DES、TripleDES、RC2、RC4、RC6、XTEA、Twofish、SAFER+、LOKI97、GOST、3DES、3WAY、SERPENT、CAMELLIA、IDEA、ENIGMA、GRAIN、TEAN、XETA、KHAZAD、ANUBIS、KSEED、MULTI2、CAST-256、Loki97、HIGHT、WAKE、DESX、SKIPJACK、KASUMI、MULTI2I、RC5、SQUARE、NOEKEON、SHACAL2、SHA256、SHA512、WHIRLPOOL、RIJNDAEL-128、RIJNDAEL-192、RIJNDAEL-256、Rijndael-128/256、Rijndael-192/256、Rijndael-256/256、RC6-32/128/192/256、RC6-64/128/192/256、RC6-128/128/192/256、RC6-192/128/192/256、RC6-256/128/192/256、DES_compat、DES_EDE、DES_EDE3、DES_EDE_ECB、DES_EDE3_ECB、DES_CBC、DES_EDE_CBC、DES_EDE3_CBC、DESX_CBC、RC2_CBC、RC4_40、RC4_128、Blowfish_compat、Blowfish_ECB、Blowfish_CBC、Blowfish_CFB、Blowfish_OFB、CAST128_ECB、CAST128_CBC、CAST128_CFB、CAST128_OFB、CAST256_ECB、CAST256_CBC、CAST256_CFB、CAST256_OFB、ARCFOUR、ARCFOUR_128、ARCFOUR_192、ARCFOUR_256、XTEA_ECB、XTEA_CBC、XTEA_CFB、XTEA_OFB、RC5_32_128_16、RC5_32_128_8、RC5_32_192_16、RC5_32_192_8、RC5_32_256_16、RC5_32_256_8、SQUARE_ECB、SQUARE_CBC、SQUARE_CFB、SQUARE_OFB、SKIPJACK_ECB、SKIPJACK_CBC、SKIPJACK_CFB、SKIPJACK_OFB、KHAZAD_ECB、KHAZAD_CBC、KHAZAD_CFB、KHAZAD_OFB、ANUBIS_ECB、ANUBIS_CBC、ANUBIS_CFB、ANUBIS_OFB、KSEED_ECB、KSEED_CBC、KSEED_CFB、KSEED_OFB、WAKE_ECB、WAKE_CBC、WAKE_CFB、WAKE_OFB、SERPENT_ECB、SERPENT_CBC、SERPENT_CFB、SERPENT_OFB、TWOFISH_ECB、TWOFISH_CBC、TWOFISH_CFB、TWOFISH_OFB、LOKI97_ECB、LOKI97_CBC、LOKI97_CFB、LOKI97_OFB、HIGHT_ECB、HIGHT_CBC、HIGHT_CFB、HIGHT_OFB、GRAIN_ECB、GRAIN_CBC、GRAIN_CFB、GRAIN_OFB、ENIGMA_ECB、ENIGMA_CBC、ENIGMA_CFB、ENIGMA_OFB、GOST_ECB、GOST_CBC、GOST_CFB、GOST_OFB、SEED_ECB、SEED_CBC、SEED_CFB、SEED_OFB、KASUMI_ECB、KASUMI_CBC、KASUMI_CFB、KASUMI_OFB、MULTI2_ECB、MULTI2_CBC、MULTI2_CFB、MULTI2_OFB、CAMELLIA_ECB、CAMELLIA_CBC、CAMELLIA_CFB、CAMELLIA_OFB、IDEA_ECB、IDEA_CBC、IDEA_CFB、IDEA_OFB、SHACAL2_ECB、SHACAL2_CBC、SHACAL2_CFB、SHACAL2_OFB、SHA256_ECB、SHA256_CBC、SHA256_CFB、SHA256_OFB、SHA512_ECB、SHA512_CBC、SHA512_CFB、SHA512_OFB、WHIRLPOOL_ECB、WHIRLPOOL_CBC、WHIRLPOOL_CFB、WHIRLPOOL_OFB、RIJNDAEL-128_ECB、RIJNDAEL-128_CBC、RIJNDAEL-128_CFB、RIJNDAEL-128_OFB、RIJNDAEL-192_ECB、RIJNDAEL-192_CBC、RIJNDAEL-192_CFB、RIJNDAEL-192_OFB、RIJNDAEL-256_ECB、RIJNDAEL-256_CBC、RIJNDAEL-256_CFB、RIJNDAEL-256_OFB、RC6-32_ECB、RC6-32_CBC、RC6-32_CFB、RC6-32_OFB、RC6-64_ECB、RC6-64_CBC、RC6-64_CFB、RC6-64_OFB、RC6-128_ECB、RC6-128_CBC、RC6-128_CFB、RC6-128_OFB、RC6-192_ECB、RC6-192_CBC、RC6-192_CFB、RC6-192_OFB、RC6-256_ECB、RC6-256_CBC、RC6-256_CFB、RC6-256_OFB、DES_compat_CBC、DES_EDE_ECB、DES_EDE_CBC、DES_EDE3_ECB、DES_EDE3_CBC、DES_CBC、DES_EDE_CBC、DES_EDE3_CBC、DESX_CBC、RC2_CBC、RC4_40、RC4_128、Blowfish_compat_CBC、Blowfish_ECB、Blowfish_CBC、Blowfish_CFB、Blowfish_OFB、CAST128_ECB、CAST128_CBC、CAST128_CFB、CAST128_OFB、CAST256_ECB、CAST256_CBC、CAST256_CFB、CAST256_OFB、ARCFOUR_128、ARCFOUR_192、ARCFOUR_256、XTEA_ECB、XTEA_CBC、XTEA_CFB、XTEA_OFB、RC5_32_128_16、RC5_32_128_8、RC5_32_192_16、RC5_32_192_8、RC5_32_256_16、RC5_32_256_8、SQUARE_ECB、SQUARE_CBC、SQUARE_CFB、SQUARE_OFB、SKIPJACK_ECB、SKIPJACK_CBC、SKIPJACK_CFB、SKIPJACK_OFB、KHAZAD_ECB、KHAZAD_CBC、KHAZAD_CFB、KHAZAD_OFB、ANUBIS_ECB、ANUBIS_CBC、ANUBIS_CFB、ANUBIS_OFB、KSEED_ECB、KSEED_CBC、KSEED_CFB、KSEED_OFB、WAKE_ECB、WAKE_CBC、WAKE_CFB、WAKE_OFB、SERPENT_ECB、SERPENT_CBC、SERPENT_CFB、SERPENT_OFB、TWOFISH_ECB、TWOFISH_CBC、TWOFISH_CFB、TWOFISH_OFB、LOKI97_ECB、LOKI97_CBC、LOKI97_CFB、LOKI97_OFB、HIGHT_ECB、HIGHT_CBC、HIGHT_CFB、HIGHT_OFB、GRAIN_ECB、GRAIN_CBC、GRAIN_CFB、GRAIN_OFB、ENIGMA_ECB、ENIGMA_CBC、ENIGMA_CFB、ENIGMA_OFB、GOST_ECB、GOST_CBC、GOST_CFB、GOST_OFB、SEED_ECB、SEED_CBC、SEED_CFB、SEED_OFB、KASUMI_ECB、KASUMI_CBC、KASUMI_CFB、KASUMI_OFB、MULTI2_ECB、MULTI2_CBC、MULTI2_CFB、MULTI2_OFB、CAMELLIA_ECB、CAMELLIA_CBC、CAMELLIA_CFB、CAMELLIA_OFB、IDEA_ECB、IDEA_CBC、IDEA_CFB、IDEA_OFB、SHACAL2_ECB、SHACAL2_CBC、SHACAL2_CFB、SHACAL2_OFB、SHA256_ECB、SHA256_CBC、SHA256_CFB、SHA256_OFB、SHA512_ECB、SHA512_CBC、SHA512_CFB、SHA512_OFB、WHIRLPOOL_ECB、WHIRLPOOL_CBC、WHIRLPOOL_CFB、WHIRLPOOL_OFB、RIJNDAEL-128_ECB、RIJNDAEL-128_CBC、RIJNDAEL-128_CFB、RIJNDAEL-128_OFB、RIJNDAEL-192_ECB、RIJNDAEL-192_CBC、RIJNDAEL-192_CFB、RIJNDAEL-192_OFB、RIJNDAEL-256_ECB、RIJNDAEL-256_CBC、RIJNDAEL-256_CFB、RIJNDAEL-256_OFB、RC6-32_ECB、RC6-32_CBC、RC6-32_CFB、RC6-32_OFB、RC6-64_ECB、RC6-64_CBC、RC6-64_CFB、RC6-64_OFB、RC6-128_ECB、RC6-128_CBC、RC6-128_CFB、RC6-128_OFB、RC6-192_ECB、RC6-192_CBC、RC6-192_CFB、RC6-192_OFB、RC6-256_ECB、RC6-256_CBC、RC6-256_CFB、RC6-256_OFB、DES_compat_CBC、DES_EDE_ECB、DES_EDE_CBC、DES_EDE3_ECB、DES_EDE3_CBC、DES_CBC、DES_EDE_CBC、DES_EDE3_CBC、DESX_CBC、RC2_CBC、RC4_40、RC4_128、Blowfish_compat_CBC、Blowfish_ECB、Blowfish_CBC、Blowfish_CFB、Blowfish_OFB、CAST128_ECB、CAST128_CBC、CAST128_CFB、CAST128_OFB、CAST256_ECB、CAST256_CBC、CAST256_CFB、CAST256_OFB、ARCFOUR_128、ARCFOUR_192、ARCFOUR_256、XTEA_ECB、XTEA_CBC、XTEA_CFB、XTEA_OFB、RC5_32_128_16、RC5_32_128_8、RC5_32_192_16、RC5_32_192_8、RC5_32_256_16、RC5_32_256_8、SQUARE_ECB、SQUARE_CBC、SQUARE_CFB、SQUARE_OFB、SKIPJACK_ECB、SKIPJACK_CBC、SKIPJACK_CFB、SKIPJACK_OFB、KHAZAD_ECB、KHAZAD_CBC、KHAZAD_CFB、KHAZAD_OFB、ANUBIS_ECB、ANUBIS_CBC、ANUBIS_CFB、ANUBIS_OFB、KSEED_ECB、KSEED_CBC、KSEED_CFB、KSEED_OFB、WAKE_ECB、WAKE_CBC、WAKE_CFB、WAKE_OFB、SERPENT_ECB、SERPENT_CBC、SERPENT_CFB、SERPENT_OFB、TWOFISH_ECB、TWOFISH_CBC、TWOFISH_CFB、TWOFISH_OFB、LOKI97_ECB、LOKI97_CBC、LOKI97_CFB、LOKI97_OFB、HIGHT_ECB、HIGHT_CBC、HIGHT_CFB、HIGHT_OFB、GRAIN_ECB、GRAIN_CBC、GRAIN_CFB、GRAIN_OFB、ENIGMA_ECB、ENIGMA_CBC、ENIGMA_CFB、ENIGMA_OFB、GOST_ECB、GOST_CBC、GOST_CFB、GOST_OFB、SEED_ECB、SEED_CBC、SEED_CFB、SEED_OFB、KASUMI_ECB、KASUMI_CBC、KASUMI_CFB、KASUMI_OFB、MULTI2_ECB、MULTI2_CBC、MULTI2_CFB、MULTI2_OFB、CAMELLIA_ECB、CAMELLIA_CBC、CAMELLIA_CFB、CAMELLIA_OFB、IDEA_ECB、IDEA_CBC、IDEA_CFB、IDEA_OFB、SHACAL2_ECB、SHACAL2_CBC、SHACAL2_CFB、SHACAL2_OFB、SHA256_ECB