lib/fernet/configuration.rb in fernet-1.2 vs lib/fernet/configuration.rb in fernet-1.3

- old
+ new

@@ -9,12 +9,17 @@ # How long messages are considered valid to the verifier # (an integer in seconds) attr_accessor :ttl + # Whether to encrypt the payload + # (true or false) + attr_accessor :encrypt + def self.run self.instance.enforce_ttl = true self.instance.ttl = 60 + self.instance.encrypt = true yield self.instance if block_given? end class << self def method_missing(method)