Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
简介 »
« hash
PHP 手册
函数参考
加密扩展
Change language:
English
Chinese (Simplified)
Other
Mcrypt
简介
安装/配置
需求
安装
运行时配置
资源类型
预定义常量
Mcrypt 密码
Mcrypt 函数
mcrypt_create_iv
— 从随机源创建初始向量
mcrypt_decrypt
— 使用给定参数解密密文
mcrypt_enc_get_algorithms_name
— 返回打开的算法名称
mcrypt_enc_get_block_size
— 返回打开的算法的分组大小
mcrypt_enc_get_iv_size
— 返回打开的算法的初始向量大小
mcrypt_enc_get_key_size
— 返回打开的模式所能支持的最长密钥
mcrypt_enc_get_modes_name
— 返回打开的模式的名称
mcrypt_enc_get_supported_key_sizes
— 以数组方式返回打开的算法所支持的密钥长度
mcrypt_enc_is_block_algorithm_mode
— 检测打开的模式是否支持分组加密
mcrypt_enc_is_block_algorithm
— 检测打开模式的算法是否为分组算法
mcrypt_enc_is_block_mode
— 检测打开的模式是否以分组方式输出
mcrypt_enc_self_test
— 在打开的模块上进行自检
mcrypt_encrypt
— 使用给定参数加密明文
mcrypt_generic_deinit
— 对加密模块进行清理工作
mcrypt_generic_init
— 初始化加密所需的缓冲区
mcrypt_generic
— 加密数据
mcrypt_get_block_size
— 获得加密算法的分组大小
mcrypt_get_cipher_name
— 获取加密算法名称
mcrypt_get_iv_size
— 返回指定算法/模式组合的初始向量大小
mcrypt_get_key_size
— 获取指定加密算法的密钥大小
mcrypt_list_algorithms
— 获取支持的加密算法
mcrypt_list_modes
— 获取所支持的模式
mcrypt_module_close
— 关闭加密模块
mcrypt_module_get_algo_block_size
— 返回指定算法的分组大小
mcrypt_module_get_algo_key_size
— 获取打开模式所支持的最大密钥大小
mcrypt_module_get_supported_key_sizes
— 以数组形式返回打开的算法所支持的密钥大小
mcrypt_module_is_block_algorithm_mode
— 返回指定模块是否是分组加密模式
mcrypt_module_is_block_algorithm
— 检测指定算法是否为分组加密算法
mcrypt_module_is_block_mode
— 检测指定模式是否以分组方式输出
mcrypt_module_open
— 打开算法和模式对应的模块
mcrypt_module_self_test
— 在指定模块上执行自检
mdecrypt_generic
— 解密数据
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.