lib/vault/rails.rb in vault-rails-0.3.2 vs lib/vault/rails.rb in vault-rails-0.4.0
- old
+ new
@@ -189,10 +189,10 @@
end
# The symmetric key for the given params.
# @return [String]
def memory_key_for(path, key)
- return Base64.strict_encode64("#{path}/#{key}".ljust(32, "x"))
+ return Base64.strict_encode64("#{path}/#{key}".ljust(16, "x")).byteslice(0..15)
end
# Forces the encoding into the default Rails encoding and returns the
# newly encoded string.
# @return [String]