You should explain that the block size is return in BYTES, not the more commonly used unit, bits. Many readers are not going to know the DES block size and figure this out on their own.
(PHP 4, PHP 5, PHP 7)
mcrypt_get_block_size — Belirtilen şifrenin küme uzunluğunu döndürür
$şifre
)$şifre
, string $kip
)İlk sözdizimi libmcrypt 2.2.x için, ikincisi libmcrypt 2.4.x ve üstü içindir.
mcrypt_get_block_size() işlevi belirtilen kip ve şifre için küme uzunluğunu döndürür.
mcrypt_module_open() ile döndürülen şifreleme tanıtıcısını kullanması nedeniyle mcrypt_enc_get_block_size() işlevi daha kullanışlıdır.
şifreBir dizge olarak kullanılacak algoritmanın ismi veya MCRYPT_şifre_adı sabitlerinden biri.
kipKip.
Blok uzunluğunu bayt sayısı olarak döndürür.
Örnek 1 - mcrypt_get_block_size() örneği
Bu örnekteki işlev libmcrypt 2.4.x ve üstü içindir.
<?php
echo mcrypt_get_block_size('tripledes', 'ecb'); // çıktısı: 8
?>
You should explain that the block size is return in BYTES, not the more commonly used unit, bits. Many readers are not going to know the DES block size and figure this out on their own.