Pop\Crypt\Md5::getSalt PHP Method

getSalt() public method

Method to get the salt
public getSalt ( ) : string
return string
    public function getSalt()
    {
        return $this->salt;
    }

Usage Example

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));
 }