Sha256: 907fa6ec3eae086e601265d00da958cd1264c8913bf563fe4cb73ab16c7db072

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

require 'fernet/version'
require 'fernet/generator'
require 'fernet/verifier'
require 'fernet/secret'
require 'fernet/configuration'

if RUBY_VERSION == '1.8.7'
  require 'shim/base64'
end

Fernet::Configuration.run

module Fernet
  def self.generate(secret, encrypt = true, &block)
    Generator.new(secret, encrypt).generate(&block)
  end

  def self.verify(secret, token, decrypt = true, &block)
    Verifier.new(secret, decrypt).verify_token(token, &block)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fernet-1.2 lib/fernet.rb