-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEncryptInterface.php
More file actions
45 lines (43 loc) · 1.04 KB
/
EncryptInterface.php
File metadata and controls
45 lines (43 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* Encrypt Interface
*
* @package User
* @copyright 2014-2015 Amy Stephen. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
namespace CommonApi\User;
/**
* Encrypt Interface
*
* @package User
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2014-2015 Amy Stephen. All rights reserved.
* @since 1.0
*/
interface EncryptInterface
{
/**
* Create Hash from the input string
*
* For use with passwords, the hash is what is stored in the database
*
* @param string $input
*
* @return string
* @since 1.0.0
*/
public function createHashString($input);
/**
* Verify Input String to Hash
*
* For use with passwords, the input is the real password, but the hash is from the database
*
* @param string $input
* @param string $hash
*
* @return boolean
* @since 1.0.0
*/
public function verifyHashString($input, $hash);
}