Sha256: 964079f1c7fae61de731b43926496ff9678d103177e78483fd856bf356708998

Contents?: true

Size: 283 Bytes

Versions: 3

Compression:

Stored size: 283 Bytes

Contents

require 'fernet/version'
require 'fernet/generator'
require 'fernet/verifier'

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fernet-0.1 lib/fernet.rb
fernet-0.0.2 lib/fernet.rb
fernet-0.0.1 lib/fernet.rb