EncrypterInterface
in
Pop Crypt encrypter interface
Tags
Table of Contents
Methods
- decrypt() : mixed
- Decrypt value
- encrypt() : string
- Encrypt value
- getAllKeys() : array<string|int, mixed>
- Get all keys
- getCipher() : string
- Get cipher
- getKey() : string
- Get key
- getPreviousKeys() : array<string|int, mixed>
- Get previous keys
- hasCipher() : bool
- Has cipher
- hasKey() : bool
- Has key
- hasPreviousKeys() : bool
- Has previous keys
- isAvailable() : bool
- Determine if the cipher is available
- isValid() : bool
- Determine if the key and cipher combination is valid
- setCipher() : static
- Set cipher
- setKey() : static
- Set key
- setPreviousKeys() : static
- Set previous keys
Methods
decrypt()
Decrypt value
public
decrypt(mixed $payload) : mixed
Parameters
- $payload : mixed
encrypt()
Encrypt value
public
encrypt(mixed $value) : string
Parameters
- $value : mixed
Return values
stringgetAllKeys()
Get all keys
public
getAllKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>getCipher()
Get cipher
public
getCipher() : string
Return values
stringgetKey()
Get key
public
getKey([bool $raw = false ]) : string
Parameters
- $raw : bool = false
Return values
stringgetPreviousKeys()
Get previous keys
public
getPreviousKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>hasCipher()
Has cipher
public
hasCipher() : bool
Return values
boolhasKey()
Has key
public
hasKey() : bool
Return values
boolhasPreviousKeys()
Has previous keys
public
hasPreviousKeys() : bool
Return values
boolisAvailable()
Determine if the cipher is available
public
static isAvailable(string $cipher) : bool
Parameters
- $cipher : string
Return values
boolisValid()
Determine if the key and cipher combination is valid
public
static isValid(string $key, string $cipher) : bool
Parameters
- $key : string
- $cipher : string
Return values
boolsetCipher()
Set cipher
public
setCipher(string $cipher) : static
Parameters
- $cipher : string
Return values
staticsetKey()
Set key
public
setKey(string $key[, bool $raw = true ]) : static
Parameters
- $key : string
- $raw : bool = true
Return values
staticsetPreviousKeys()
Set previous keys
public
setPreviousKeys(array<string|int, mixed> $previousKeys) : static
Parameters
- $previousKeys : array<string|int, mixed>