getSalt() public méthode

Method to get the salt
public getSalt ( ) : string
Résultat string
Exemple #1
0
 public function testCrypt()
 {
     $crypt = new Crypt\Crypt();
     $crypt->setSalt('Test Salt');
     $this->assertEquals('Test Salt', $crypt->getSalt());
     $hash = $crypt->create('12password34');
     $this->assertTrue($crypt->verify('12password34', $hash));
 }