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:

// Basic access
{{ $entry->secret }}

Decorator Usage

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

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

Methods

@todo Generate methods from @docs

Configuration

@todo Generate config options from class::configuration