lib/fernet/generator.rb in legacy-fernet-1.6.1 vs lib/fernet/generator.rb in legacy-fernet-1.6.2
- old
+ new
@@ -1,11 +1,11 @@
require 'base64'
require 'multi_json'
require 'openssl'
require 'date'
-module Legacy::Fernet
+module Fernet::Legacy
class Generator
attr_accessor :data, :payload
def initialize(secret, encrypt)
@secret = Secret.new(secret, encrypt)
@@ -28,10 +28,10 @@
mac = OpenSSL::HMAC.hexdigest('sha256', payload, signing_key)
"#{payload}|#{mac}"
end
def inspect
- "#<Legacy::Fernet::Generator @secret=[masked] @data=#{@data.inspect}>"
+ "#<Fernet::Legacy::Generator @secret=[masked] @data=#{@data.inspect}>"
end
alias to_s inspect
def data
@data ||= {}