final | |
|---|---|
implements |
Stringable |
A secure string that is encrypted at rest.
The string is encrypted as a Branca\Branca
token when stored.
The key is obtained from the SIMPLEID_SECURE_SECRET environment
variable (as a binary string), or a file specified by the
SIMPLEID_SECURE_SECRET_FILE environment variable.
| Methods | ||
|---|---|---|
public
|
__construct(string $ciphertext)
|
# |
public
static
|
fromPlaintext(string $plaintext): SecureString
|
# |
public
|
toPlaintext(): string
|
# |
public
|
toYamlTaggedValue(): TaggedValue
|
# |
public
static
|
getPlaintext(SecureString|TaggedValue|string|Stringable|null $value): string
|
# |
public
|
__toString(): string
|
# |
public
|
__serialize(): array
|
# |
public
|
__unserialize(array<mixed> $data): void
|
# |