Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Contracts\Hashing;
4
 
5
interface Hasher
6
{
7
    /**
8
     * Get information about the given hashed value.
9
     *
10
     * @param  string  $hashedValue
11
     * @return array
12
     */
13
    public function info($hashedValue);
14
 
15
    /**
16
     * Hash the given value.
17
     *
18
     * @param  string  $value
19
     * @param  array  $options
20
     * @return string
21
     */
22
    public function make($value, array $options = []);
23
 
24
    /**
25
     * Check the given plain value against a hash.
26
     *
27
     * @param  string  $value
28
     * @param  string  $hashedValue
29
     * @param  array  $options
30
     * @return bool
31
     */
32
    public function check($value, $hashedValue, array $options = []);
33
 
34
    /**
35
     * Check if the given hash has been hashed using the given options.
36
     *
37
     * @param  string  $hashedValue
38
     * @param  array  $options
39
     * @return bool
40
     */
41
    public function needsRehash($hashedValue, array $options = []);
42
}