PHP - crypt 函式



語法

string crypt ( string $str [, string $salt ] )

定義和用法

用於對字串進行雜湊處理

返回值

返回雜湊後的字串

引數

序號 引數及描述
1

str

要進行雜湊處理的字串

示例

嘗試以下示例

<?php
   $input = 'information';
   
   $hash = crypt($input);
?>
php_function_reference.htm
廣告