getSalt() public method

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