香港论坛

 找回密码
 立即注册
搜索
查看: 3|回复: 0

Mcrypt ciphers

[复制链接]

1261

主题

140

回帖

21万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
215962
发表于 3 天前 | 显示全部楼层 |阅读模式

Mcrypt ciphers



  Here is a list of ciphers which are currently supported by the mcrypt
  extension.  For a complete list of supported ciphers, see the defines at
  the end of mcrypt.h. The general rule with the
  mcrypt-2.2.x API is that you can access the cipher from PHP with
  MCRYPT_ciphername. With the libmcrypt-2.4.x and libmcrypt-2.5.x API these constants also work,
  but it is possible to specify the name of the cipher as a string with a
  call to mcrypt_module_open().
  
   MCRYPT_3DES
   MCRYPT_ARCFOUR_IV (libmcrypt > 2.4.x only)
   MCRYPT_ARCFOUR (libmcrypt > 2.4.x only)
   MCRYPT_BLOWFISH
   MCRYPT_CAST_128
   MCRYPT_CAST_256
   MCRYPT_CRYPT
   MCRYPT_DES
   MCRYPT_DES_COMPAT (libmcrypt 2.2.x only)
   MCRYPT_ENIGMA (libmcrypt > 2.4.x only, alias for MCRYPT_CRYPT)
   MCRYPT_GOST
   MCRYPT_IDEA (non-free)
   MCRYPT_LOKI97 (libmcrypt > 2.4.x only)
   MCRYPT_MARS (libmcrypt > 2.4.x only, non-free)
   MCRYPT_PANAMA (libmcrypt > 2.4.x only)
   MCRYPT_RIJNDAEL_128 (libmcrypt > 2.4.x only)
   MCRYPT_RIJNDAEL_192 (libmcrypt > 2.4.x only)
   MCRYPT_RIJNDAEL_256 (libmcrypt > 2.4.x only)
   MCRYPT_RC2
   MCRYPT_RC4 (libmcrypt 2.2.x only)
   MCRYPT_RC6 (libmcrypt > 2.4.x only)
   MCRYPT_RC6_128 (libmcrypt 2.2.x only)
   MCRYPT_RC6_192 (libmcrypt 2.2.x only)
   MCRYPT_RC6_256 (libmcrypt 2.2.x only)
   MCRYPT_SAFER64
   MCRYPT_SAFER128
   MCRYPT_SAFERPLUS (libmcrypt > 2.4.x only)
   MCRYPT_SERPENT(libmcrypt > 2.4.x only)
   MCRYPT_SERPENT_128 (libmcrypt 2.2.x only)
   MCRYPT_SERPENT_192 (libmcrypt 2.2.x only)
   MCRYPT_SERPENT_256 (libmcrypt 2.2.x only)
   MCRYPT_SKIPJACK (libmcrypt > 2.4.x only)
   MCRYPT_TEAN (libmcrypt 2.2.x only)
   MCRYPT_THREEWAY
   MCRYPT_TRIPLEDES (libmcrypt > 2.4.x only)
   MCRYPT_TWOFISH (for older mcrypt 2.x versions, or mcrypt > 2.4.x )
   MCRYPT_TWOFISH128 (TWOFISHxxx are available in newer 2.x versions, but not in the 2.4.x versions)
   MCRYPT_TWOFISH192
   MCRYPT_TWOFISH256
   MCRYPT_WAKE (libmcrypt > 2.4.x only)
   MCRYPT_XTEA (libmcrypt > 2.4.x only)
  




  You must (in CFB and OFB mode)
  or can (in CBC mode) supply an
  initialization vector (IV) to the respective cipher function. The
  IV must be unique and must be the same when
  decrypting/encrypting. With data which is stored encrypted, you
  can take the output of a function of the index under which the
  data is stored (e.g.  the MD5 key of the filename).
  Alternatively, you can transmit the IV together with the encrypted
  data (see chapter 9.3 of Applied Cryptography by Schneier (ISBN 0-471-11709-9) for a
  discussion of this topic).






上一篇:当前比较流行的两款PHP加密、解密工具Zend Guard和iconCube介绍
下一篇:php url加密工具哪个好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

站点统计|Archiver|手机版|小黑屋|香港论坛 ( 非经营性网站 )|网站地图

GMT+8, 2025-1-7 04:52 , Processed in 0.135160 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.