Skip to content

Core\Jwe

Encrypts a text into a JWE token that only the holder of the right key can read. encrypt writes the token and decrypt reads the text back. The key is a Jwe\Key, and the method that made the key chooses the algorithm.

Members

2 members.

MemberSignature
encryptencrypt(string $payload, Core\Jwe\Key $key): string
decryptdecrypt(string $token, array<Core\Jwe\Key> $keys): tainted string