make() public méthode

Hash the given value.
public make ( string $value, array $options = [] ) : string
$value string
$options array
Résultat string
Exemple #1
0
 public function testBasicHashing()
 {
     $hasher = new OsuHasher();
     $value = $hasher->make('password');
     $this->assertNotSame('password', $value);
     $this->assertNotSame(md5('password'), $value);
     $this->assertTrue($hasher->check('password', $value));
     $this->assertFalse($hasher->needsRehash($value));
     $this->assertTrue($hasher->needsRehash($value, ['cost' => 4]));
 }