lib/lockbox/box.rb in lockbox-0.2.2 vs lib/lockbox/box.rb in lockbox-0.2.3
- old
+ new
@@ -1,7 +1,5 @@
-require "securerandom"
-
class Lockbox
class Box
def initialize(key: nil, algorithm: nil, encryption_key: nil, decryption_key: nil, padding: false)
raise ArgumentError, "Cannot pass both key and public/private key" if key && (encryption_key || decryption_key)
@@ -72,10 +70,10 @@
end
message = Lockbox.unpad(message, size: @padding) if @padding
message
end
- # protect key for xchacha20 and hybrid
+ # protect key for xsalsa20, xchacha20, and hybrid
def inspect
to_s
end
private