PHP Class Jose\Util\Hash

Datei anzeigen Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
getLength ( ) : integer
hash ( string $text ) : string Compute the HMAC.
sha1 ( ) : Hash
sha256 ( ) : Hash
sha384 ( ) : Hash
sha512 ( ) : Hash

Private Methods

Method Description
__construct ( string $hash, integer $length )

Method Details

getLength() public method

public getLength ( ) : integer
return integer

hash() public method

Compute the HMAC.
public hash ( string $text ) : string
$text string
return string

sha1() public static method

public static sha1 ( ) : Hash
return Hash

sha256() public static method

public static sha256 ( ) : Hash
return Hash

sha384() public static method

public static sha384 ( ) : Hash
return Hash

sha512() public static method

public static sha512 ( ) : Hash
return Hash