Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.
cipher
암호, 암호화
Ultimo aggiornamento 2006-09-06
Frequenza di utilizzo: 1
Qualità:
if linked against libmcrypt-2.4.x or higher the functions can also operate in the block cipher mode nofb and in stream mode.
ecb (electronic codebook) is suitable for random data, such as encrypting other keys. since data there is short and random, the disadvantages of ecb have a favorable negative effect.
mcrypt_mode_cfb (cipher feedback) is the best mode for encrypting byte streams where single bytes must be encrypted.
ofb (output feedback, in 8bit) is comparable to cfb, but can be used in applications where error propagation cannot be tolerated. it's insecure (because it operates in 8bit mode) so it is not recommended to use it.
the first line in the example above will try to open the des cipher from the default directory and the ebc mode from the directory / usr / lib / mcrypt-modes.
the algorithm_directory and mode_directory are used to locate the encryption modules. when you supply a directory name, it is used. when you set one of these to the empty string (""), the value set by the mcrypt.algorithms_dir or mcrypt.modes_dir ini-directive is used. when these are not set, the default directory are used that are compiled in into libmcrypt (usally /usr/local/lib/libmcrypt).
?php $algorithms = mcrypt_list_algorithms ("/ usr / local / lib / libmcrypt"); foreach ($algorithms as $cipher) {echo "$cipher br / \n";}?
예 1. mcrypt_list_algorithms() example