class

JoobQ::Encryption::Keys

Inherits Reference < Object

The configured keys: the current one (seals) and the old ones (open only).

Constructors

new(keys : Hash(String, Bytes), current_id : String)
Source
parse(entries : Array(String), source : String = "payload keys") : Keys

entries is a list of id:key texts, the first one current.

Source
parse(text : String, source : String = "payload keys") : Keys
Source

Class methods

from_env
Source

Instance methods

[](id : String) : Bytes | Nil
Source
current_id
Source