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

PHP Home Page

Manual Table of Contents
Up to mcrypt
Quick Reference
English version of this pageGerman version of this pageItalian version of this pageFrench version of this pageHungarian 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_ecb
View the source code for this pageSearch the site



Previous page
 mcrypt_cfb
 Updated
Sat, 12 Aug 2000
mcrypt_ofb 
Next page


mcrypt_ecb

(PHP3 >= 3.0.8, PHP4 )

mcrypt_ecb -- ECB モードでデータを暗号化/複合化する

説明

string mcrypt_ecb (int cipher, string key, string data, int mode)

string mcrypt_ecb (string cipher, string key, string data, int mode [, string iv])

最初のプロトタイプは、libmcrypt 2.2.x とリンクした場合、2番目は、 libmcrypt 2.4.x とリンクした場合です。

mcrypt_ecb() は、ECB 暗号化モードで cipher および key を用いて (mode に応じて) data を 暗号化または複合化し、結果を文字列として返します。

cipher には、定数 MCRYPT_暗号名 のうちの一つを 指定します。

key は、アルゴリズムに与えるキーです。 キーは、秘密にする必要があります。

data は、暗号化/複合化するデータです。

mode は、MCRYPT_ENCRYPT または MCRYPT_DECRYPT です。

iv はオプションの初期化ベクトルです。

mcrypt_cbc(), mcrypt_cfb(), mcrypt_ofb() も参照下さい。


User Contributed Notes: mcrypt_ecb


kosuke@e-tech.co.jp
08-Apr-2000 01:06
mcrypt_ecb
mcrypt_ecb -- Encrypt/decrypt data in ECB mode
Description

int mcrypt_ecb(int cipher, string key, string data, int mode);

mcrypt_ecb() encrypts or decrypts (depending on mode) the data with cipher and key in ECB cipher mode and returns the resulting string.

cipher is one of the MCRYPT_ciphername constants.

key is the key supplied to the algorithm. It must be kept secret.

data is the data which shall be encrypted/decrypted.

mode is MCRYPT_ENCRYPT or MCRYPT_DECRYPT.

See also: mcrypt_cbc(), mcrypt_cfb(), mcrypt_ofb()




 About Notes


Previous page
 mcrypt_cfb
 Updated
Sat, 12 Aug 2000
mcrypt_ofb 
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.