for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace FirstShuai\Hasher;
/**
* Created by PhpStorm.
* User: FirstShuai
* Date: 2016/10/28
* Time: 下午3:09
*/
class MD5Hasher
{
public function make($value, array $options = [])
$salt = isset($options['salt']) ? $options['salt'] : '';
return md5($value . $salt);
}
public function check($value, $hasherValer, array $options = [])
return $hasherValer === md5($value . $salt);