lib/lockbox.rb in lockbox-1.1.1 vs lib/lockbox.rb in lockbox-1.1.2
- old
+ new
@@ -70,10 +70,10 @@
key = to_hex(key) if encode
key
end
def self.to_hex(str)
- str.unpack("H*").first
+ str.unpack1("H*")
end
def self.new(**options)
Encryptor.new(**options)
end