lib/fernet/secret.rb in fernet-1.0 vs lib/fernet/secret.rb in fernet-1.1

- old
+ new

@@ -4,15 +4,15 @@ @secret = secret @encrypt = encrypt end def encryption_key - @secret.byteslice(@secret.bytesize/2, @secret.bytesize) + @secret.slice(@secret.size/2, @secret.size) end def signing_key if @encrypt - @secret.byteslice(0, @secret.bytesize/2) + @secret.slice(0, @secret.size/2) else @secret end end end