class Nyauth::Encryptor
Attributes
encryptor[R]
Public Class Methods
decrypt(encrypted_message)
click to toggle source
# File lib/nyauth/encryptor.rb, line 20 def decrypt(encrypted_message) instance.encryptor.decrypt_and_verify(encrypted_message) end
encrypt(message)
click to toggle source
# File lib/nyauth/encryptor.rb, line 16 def encrypt(message) instance.encryptor.encrypt_and_sign(message) end
new()
click to toggle source
# File lib/nyauth/encryptor.rb, line 11 def initialize @encryptor = ::ActiveSupport::MessageEncryptor.new(Nyauth.configuration.encryption_secret, cipher: @@cipher, digest: @@digest) end