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
Introduction »
« hash
PHP Manual
Function Reference
Cryptography Extensions
Change language:
English
Chinese (Simplified)
Other
Mcrypt
Introduction
Installing/Configuring
Requirements
Installation
Runtime Configuration
Resource Types
Predefined Constants
Mcrypt ciphers
Mcrypt Functions
mcrypt_create_iv
— Creates an initialization vector (IV) from a random source
mcrypt_decrypt
— Decrypts crypttext with given parameters
mcrypt_enc_get_algorithms_name
— Returns the name of the opened algorithm
mcrypt_enc_get_block_size
— Returns the blocksize of the opened algorithm
mcrypt_enc_get_iv_size
— Returns the size of the IV of the opened algorithm
mcrypt_enc_get_key_size
— Returns the maximum supported keysize of the opened mode
mcrypt_enc_get_modes_name
— Returns the name of the opened mode
mcrypt_enc_get_supported_key_sizes
— Returns an array with the supported keysizes of the opened algorithm
mcrypt_enc_is_block_algorithm_mode
— Checks whether the encryption of the opened mode works on blocks
mcrypt_enc_is_block_algorithm
— Checks whether the algorithm of the opened mode is a block algorithm
mcrypt_enc_is_block_mode
— Checks whether the opened mode outputs blocks
mcrypt_enc_self_test
— Runs a self test on the opened module
mcrypt_encrypt
— Encrypts plaintext with given parameters
mcrypt_generic_deinit
— This function deinitializes an encryption module
mcrypt_generic_init
— This function initializes all buffers needed for encryption
mcrypt_generic
— This function encrypts data
mcrypt_get_block_size
— Gets the block size of the specified cipher
mcrypt_get_cipher_name
— Gets the name of the specified cipher
mcrypt_get_iv_size
— Returns the size of the IV belonging to a specific cipher/mode combination
mcrypt_get_key_size
— Gets the key size of the specified cipher
mcrypt_list_algorithms
— Gets an array of all supported ciphers
mcrypt_list_modes
— Gets an array of all supported modes
mcrypt_module_close
— Closes the mcrypt module
mcrypt_module_get_algo_block_size
— Returns the blocksize of the specified algorithm
mcrypt_module_get_algo_key_size
— Returns the maximum supported keysize of the opened mode
mcrypt_module_get_supported_key_sizes
— Returns an array with the supported keysizes of the opened algorithm
mcrypt_module_is_block_algorithm_mode
— Returns if the specified module is a block algorithm or not
mcrypt_module_is_block_algorithm
— This function checks whether the specified algorithm is a block algorithm
mcrypt_module_is_block_mode
— Returns if the specified mode outputs blocks or not
mcrypt_module_open
— Opens the module of the algorithm and the mode to be used
mcrypt_module_self_test
— This function runs a self test on the specified module
mdecrypt_generic
— Decrypts data
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.