Sha256: 3b29b3912bcac9876a5862175fd98bd5c3a7d7e87c148e39e2499bdd49635252
Contents?: true
Size: 347 Bytes
Versions: 3
Compression:
Stored size: 347 Bytes
Contents
module Fernet::Legacy class Secret def initialize(secret, encrypt) @secret = secret @encrypt = encrypt end def encryption_key @secret.slice(@secret.size/2, @secret.size) end def signing_key if @encrypt @secret.slice(0, @secret.size/2) else @secret end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
legacy-fernet-1.6.4 | lib/fernet/legacy/secret.rb |
legacy-fernet-1.6.3 | lib/fernet/legacy/secret.rb |
legacy-fernet-1.6.2 | lib/fernet/secret.rb |