2016-07-21 22:01:57 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Services\Cipher;
|
|
|
|
|
2017-01-08 12:49:32 +08:00
|
|
|
class MD5 extends BaseCipher
|
2016-07-21 22:01:57 +08:00
|
|
|
{
|
|
|
|
/**
|
2017-01-08 10:48:46 +08:00
|
|
|
* Once MD5 hash
|
2016-07-21 22:01:57 +08:00
|
|
|
*/
|
2017-01-08 12:49:32 +08:00
|
|
|
public function hash($value, $salt = "")
|
2017-01-08 10:48:46 +08:00
|
|
|
{
|
|
|
|
return md5($value);
|
2016-07-21 22:01:57 +08:00
|
|
|
}
|
|
|
|
}
|