refactoring.
This commit is contained in:
22
laravel/hash/engine.php
Normal file
22
laravel/hash/engine.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php namespace Laravel\Hash;
|
||||
|
||||
interface Engine {
|
||||
|
||||
/**
|
||||
* Perform a one-way hash on a string.
|
||||
*
|
||||
* @param string $value
|
||||
* @return string
|
||||
*/
|
||||
public function hash($value);
|
||||
|
||||
/**
|
||||
* Determine if an unhashed value matches a given hash.
|
||||
*
|
||||
* @param string $value
|
||||
* @param string $hash
|
||||
* @return bool
|
||||
*/
|
||||
public function check($value, $hash);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user