獲取打開模式所支援的最大金鑰大小

mcrypt_module_get_algo_key_size

(PHP 4 >= 4.0.2, PHP 5, PHP 7 < 7.2.0, PECL mcrypt >= 1.0.0)

mcrypt_module_get_algo_key_size獲取打開模式所支援的最大金鑰大小

警告

本函式已自 PHP 7.1.0 起廢棄。強烈建議不要使用本函式。

說明

mcrypt_module_get_algo_key_size(string $algorithm, string $lib_dir = ?): int

獲取打開模式所支援的最大金鑰大小。

參數

algorithm

演算法名稱。

lib_dir

可選參數, 表示在操作系統上包含模式模組的路徑。

返回值

本函式返回演算法所支援的最大金鑰大小, 以位元組為單位。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *