Skip to content

Core\Jwe\Key

The key for Core\Jwe. Each static method makes one kind of key: shared from 32 secret bytes, password from a password, recipient from another party's public key, and own from your own key pair. You cannot read the key back out.

Members

4 members.

MemberSignature
sharedshared(secret bytes $key): Core\Jwe\Key
passwordpassword(secret string $password): Core\Jwe\Key
recipientrecipient(Core\Crypto\PublicKey $key): Core\Jwe\Key
ownown(Core\Crypto\KeyPair $key): Core\Jwe\Key