diff --git a/lib/fernet/encryption.rb b/lib/fernet/encryption.rb index 51f6df8..9828708 100644 --- a/lib/fernet/encryption.rb +++ b/lib/fernet/encryption.rb @@ -44,11 +44,11 @@ def self.encrypt(opts) # # Examples # - # ciphertext, iv = Fernet::Encryption.encrypt( - # message: 'this is a secret', key: encryption_key + # message = Fernet::Encryption.encrypt( + # ciphertext: ciphertext, key: encryption_key, iv: iv # ) # - # Returns a two-element array containing the ciphertext and the random IV + # Returns the message as a string def self.decrypt(opts) decipher = OpenSSL::Cipher.new('AES-128-CBC') decipher.decrypt