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

PHP Home Page

Manual Table of Contents
Up to mcrypt
Quick Reference
German version of this pageJapanese 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_get_cipher_name
View the source code for this pageSearch the site



Previous page
 mcrypt
 Updated
Sat, 12 Aug 2000
mcrypt_get_block_size 
Next page


mcrypt_get_cipher_name

(PHP3 >= 3.0.8, PHP4 )

mcrypt_get_cipher_name -- Get the name of the specified cipher

Description

string mcrypt_get_cipher_name (int cipher)

string mcrypt_get_cipher_name (string cipher)

Mcrypt_get_cipher_name() is used to get the name of the specified cipher.

Mcrypt_get_cipher_name() takes the cipher number as an argument (libmcrypt 2.2.x) or takes the cipher name as an argument (libmcrypt 2.4.x) and returns the name of the cipher or false, if the cipher does not exist.

Example 1. Mcrypt_get_cipher_name() Example


<?php
$cipher = MCRYPT_TripleDES;

print mcrypt_get_cipher_name ($cipher);
?>
      

The above example will produce:

TripleDES
     


User Contributed Notes: mcrypt_get_cipher_name


julie@thickbook.com
02-Mar-2000 07:09
Remember that default cipher type is Blowfish (or Blowfish-448). Therefore, if you use mcrypt_get_cipher_name on a cipher type that isn't represented in your version of mcrypt, mcrypt_get_cipher_name will return BLOWFISH-448.


 About Notes


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