module Paseto::V2::Local

Symmetric Encryption

Constants

NONCE_BYTES
NonceError

Public Class Methods

decrypt(token, key, footer = nil) click to toggle source
# File lib/paseto/local.rb, line 93
def self.decrypt(token, key, footer = nil)
  key.decrypt(token, footer)
end
encrypt(message, key, footer = EMPTY_FOOTER) click to toggle source
# File lib/paseto/local.rb, line 89
def self.encrypt(message, key, footer = EMPTY_FOOTER)
  key.encrypt(message, footer)
end