Class: Dpop::Encryptor
- Inherits:
-
Object
- Object
- Dpop::Encryptor
- Extended by:
- Forwardable
- Defined in:
- lib/dpop/encryptor.rb
Overview
Encrypts and decrypts messages
Constant Summary collapse
- SECRET =
"dpop encrypted message"
- SIGN_SECRET =
"signed dpop encrypted message"
- CIPHER =
"aes-256-gcm"
Instance Method Summary collapse
-
#initialize(secret) ⇒ Encryptor
constructor
A new instance of Encryptor.
Constructor Details
#initialize(secret) ⇒ Encryptor
Returns a new instance of Encryptor.
14 15 16 |
# File 'lib/dpop/encryptor.rb', line 14 def initialize(secret) = (secret) end |