Skip to content

v0.0.9

Choose a tag to compare

@jakekgrog jakekgrog released this 23 Aug 10:22
· 9 commits to master since this release
a32a6fa

What's Changed

Added Client Side Decrypt Tokens

Note: This function is not available if you are in scope for PCI

$evervault->createClientSideDecryptToken() creates a time-bound token that can be used to decrypt previously encrypted data.

The $data parameter is required and ensures the token can only be used to decrypt that specific payload.

The $expiry parameter sets the expiry for the token. It is UNIX time in seconds. It defaults to 5 minutes into the future if not provided. The max time is 10 minutes into the future.

$timeInFiveMinutes = time() + 5*60;
$token = $evervault->createClientSideDecryptToken([
    'encrypted' => $encrypted
], $timeInFiveMinutes);

Full Changelog: v0.0.8...v0.0.9