Hash Text

Overview

The hashed field type stores a one-way hashed string.

// streams/example.json
"fields": {
    "secret": {
        "type": "hashed"
    }
}

Data Structure

{
    "secret": "$2y$10$bd4ATnlv.fApn0OGSMwU7.rBOUMP2cBaFQY20NFTNdpGCYUIZMEMm"
}

Basic value access displays encrypted value:

@verbatim// Basic access
{{ $entry->secret }}
@endverbatim

Decorator Usage

To get anything out of your stored value you will need to expand it.

@verbatim// Decorated value
@if ($entry->secret()->check('check me'))
    // Matches
@endif
@endverbatim

Methods

@todo Generate methods from @docs

Configuration

@todo Generate config options from class::configuration