The encrypted
field type stores a two-way encrypted string.
// streams/example.json
"fields": {
"secret": {
"type": "encrypted"
}
}
{
"secret": "eyJpdiI6IkRKSWdqMDVDUXYzR3pJRTkwZjJZRmc9PSIsInZhbHVlIjoic3NrUHF4RE1jVnFBVFIrNG85Rjh4VlZkU1kzQUs5VEp5b3Y5VVU2cUZYYz0iLCJtYWMiOiIyNWFhZTM1MDBhZTdmNDZiY2E2NzM2NjE1NjYzYThmMmMzYTczNGJhM2VlNjBiZDdkZmNlOGFhMWVkZmQwN2RjIiwidGFnIjoiIn0="
}
Basic value access displays encrypted value:
@verbatim// Basic access
{{ $entry->secret }}
@endverbatim
To get anything out of your stored value you will need to expand it.
@verbatim// Decorated value
{{ $entry->secret()->decrypt() }}
@endverbatim
@todo Generate methods from @docs
@todo Generate config options from class::configuration
A blank TALL-stack Laravel project with Streams.
The fundamental features and utilities offered by the Streams platform.
A universal and extensible RESTful API for Streams.
Extensible, user-friendly, and performant control panel, components, and services.
Dev tooling for Laravel Streams.