Menu

## Hmac
in package
implements Signer

Hmac.php : 7

### Table of Contents

#### Interfaces

Signer

#### Properties

$secret : string
  The secret key.

#### Methods

__construct() : void
  Creates a new signer instance.
sign() : array<string|int, mixed>
  Sign the given serializable.
verify() : bool
  Verify the given signature.

### Properties

#### $secret

Hmac.php : 14

The secret key.

`protected string $secret`

### Methods

#### __construct()

Hmac.php : 22

Creates a new signer instance.

`public __construct(string $secret) : void`

##### Parameters

$secret : string

#### sign()

Hmac.php : 33

Sign the given serializable.

`public sign(string $serialized) : array<string|int, mixed>`

##### Parameters

$serialized : string

##### Return values

array<string|int, mixed>

#### verify()

Hmac.php : 47

Verify the given signature.

`public verify(array<string|int, mixed> $signature) : bool`

##### Parameters

$signature : array<string|int, mixed>

##### Return values

bool

## Search results