\Pop\CryptCryptInterface

Crypt interface

Summary

Methods
Constants
setSalt()
getSalt()
create()
verify()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setSalt()

setSalt(string  $salt = null) : self

Set the salt

Parameters

string $salt

Returns

self

getSalt()

getSalt() : string

Get the salt

Returns

string

create()

create(string  $string) : string

Create the hashed value

Parameters

string $string

Returns

string

verify()

verify(string  $string, string  $hash) : boolean

Create the hashed value

Parameters

string $string
string $hash

Returns

boolean