BoxTrait
Trait BoxTrait.
Table of Contents
Methods
- makeKeyPair() : string
- Makes a keypair.
- makeNonce() : string
- Makes a box nonce with the correct length.
- makePublicKey() : string
- Makes the public key from a keypair.
- makeSecretKey() : string
- Makes the secret key from a keypair.
Methods
makeKeyPair()
Makes a keypair.
public
static makeKeyPair() : string
Tags
Return values
stringmakeNonce()
Makes a box nonce with the correct length.
public
static makeNonce() : string
Tags
Return values
stringmakePublicKey()
Makes the public key from a keypair.
public
static makePublicKey(string $keyPair) : string
Parameters
- $keyPair : string
Tags
Return values
stringmakeSecretKey()
Makes the secret key from a keypair.
public
static makeSecretKey(string $keyPair) : string
Parameters
- $keyPair : string