Sha256: 9d02a531733c99bdbcb9ef5471f60a9fc5d907fa6b4d6dc7caaa45aabbada156
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require 'fernet/version' require 'fernet/legacy/generator' require 'fernet/legacy/verifier' require 'fernet/legacy/secret' require 'fernet/legacy/configuration' if RUBY_VERSION == '1.8.7' require 'shim/base64' end Fernet::Legacy::Configuration.run module Fernet::Legacy 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
legacy-fernet-1.6.4 | lib/fernet/legacy.rb |
legacy-fernet-1.6.3 | lib/fernet/legacy.rb |