★ wanayoo — archive 1999 http://www.php.net/manual/ja/function.mcrypt-decrypt.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to mcrypt
Quick Reference
English version of this page
mcrypt
* mcrypt_get_cipher_name
* mcrypt_get_block_size
* mcrypt_get_key_size
* mcrypt_create_iv
* mcrypt_cbc
* mcrypt_cfb
* mcrypt_ecb
* mcrypt_ofb
* mcrypt_list_algorithms
* mcrypt_list_modes
* mcrypt_get_iv_size
* mcrypt_encrypt
* mcrypt_decrypt
* mcrypt_module_open
* mcrypt_generic_init
* mcrypt_generic
* mdecrypt_generic
* mcrypt_generic_end
* mcrypt_enc_self_test
* mcrypt_enc_is_block_algorithm_mode
* mcrypt_enc_is_block_algorithm
* mcrypt_enc_is_block_mode
* mcrypt_enc_get_block_size
* mcrypt_enc_get_key_size
* mcrypt_enc_get_supported_key_sizes
* mcrypt_enc_get_iv_size
* mcrypt_enc_get_algorithms_name
* mcrypt_enc_get_modes_name
* mcrypt_module_self_test
* mcrypt_module_is_block_algorithm_mode
* mcrypt_module_is_block_algorithm
* mcrypt_module_is_block_mode
* mcrypt_module_get_algo_block_size
* mcrypt_module_get_algo_key_size
* mcrypt_module_get_algo_supported_key_sizes
Manual: mcrypt_decrypt
View the source code for this pageSearch the site



Previous page
 mcrypt_encrypt
 Updated
Mon, 14 Aug 2000
mcrypt_module_open 
Next page


mcrypt_decrypt

(unknown)

mcrypt_decrypt --  指定したパラメータで暗号化されたテキストを複合化する

説明

string mcrypt_decrypt (string cipher, string key, string data, string mode [, string iv])

mcrypt_decrypt() はデータを複合化し、 複合化されたデータを返します。

cipher には、アルゴリズム名を表す定数 MCRYPT_暗号名の一つを文字列で指定します。

key は、データを暗号化する際のキーです。必 要なキー長よりも小さい場合には、'\0' で埋められます。

data は、指定した暗号およびモードで暗号化 されます。データの大きさが n * blocksize でない場合、データは、 '\0'で埋められます。返される暗号化されたテキストは、 dataんで指定したデータの大きさよりも大きく なる可能性があります。

mode には、"ecb", "cbc", "cfb", "ofb", "nofb" ,"stream" のどれかを用いて定数 MCRYPT_MODE_モード名を 指定します。

パラメータ IV は、CBC, CFB, OFB モードおよ びSREAMモードのいくつかのアルゴリズムの初期化の際に使用されます。 アルゴリズムで必要とするIVを指定しない場合、この関数は警告を発生 し、全てのバイトを'\0'に設定したIVを使用します。


 About Notes


Previous page
 mcrypt_encrypt
 Updated
Mon, 14 Aug 2000
mcrypt_module_open 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.