290112011 发表于 2017-3-4 10:00:39

php crypt加密

<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

// 设置密码
$password = 'test';
// 获取散列值,使用自动盐值
$hash = crypt($password);
echo $hash;
页: [1]
查看完整版本: php crypt加密