Class: PqcRails::ActiveRecord::KeyProvider::Key
- Inherits:
-
Struct
- Object
- Struct
- PqcRails::ActiveRecord::KeyProvider::Key
- Defined in:
- lib/pqc_rails/active_record/key_provider.rb
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret
28 29 30 |
# File 'lib/pqc_rails/active_record/key_provider.rb', line 28 def secret @secret end |
Instance Method Details
#id ⇒ Object
29 30 31 |
# File 'lib/pqc_rails/active_record/key_provider.rb', line 29 def id Digest::SHA1.hexdigest(secret.public_key).first(4) end |
#public_tags ⇒ Object
33 34 35 |
# File 'lib/pqc_rails/active_record/key_provider.rb', line 33 def ||= ::ActiveRecord::Encryption::Properties.new end |