Sha256: 358cc601bed044c517eb0c51c0b9a6d6aa66261a357164c414f1806a8e5197af
Contents?: true
Size: 661 Bytes
Versions: 3
Compression:
Stored size: 661 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 = Configuration.encrypt, &block) Generator.new(secret, encrypt).generate(&block) end def self.verify(secret, token, encrypt = Configuration.encrypt, &block) Verifier.new(secret, encrypt).verify_token(token, &block) end def self.verifier(secret, token, encrypt = Configuration.encrypt) Verifier.new(secret, encrypt).tap do |v| v.verify_token(token) end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
fernet_multi_json-1.6 | lib/fernet.rb |
fernet-1.6 | lib/fernet.rb |
fernet-1.4 | lib/fernet.rb |