lib/lockbox/box.rb in lockbox-0.3.3 vs lib/lockbox/box.rb in lockbox-0.3.4

- old
+ new

@@ -68,10 +68,10 @@ @box.decrypt(nonce, ciphertext) else nonce, ciphertext = extract_nonce(@box, ciphertext) @box.decrypt(nonce, ciphertext, associated_data) end - message = Lockbox.unpad(message, size: @padding) if @padding + message = Lockbox.unpad!(message, size: @padding) if @padding message end # protect key for xsalsa20, xchacha20, and hybrid def inspect