From 8c3ea83f6b37a0422e67b314f4ca10e7bd4f43a7 Mon Sep 17 00:00:00 2001 From: Dann Luciano Date: Sat, 21 May 2016 13:26:03 -0300 Subject: [PATCH] Fixed documentation in decryption method --- lib/fernet/encryption.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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