Skip to content

Commit

Permalink
updated way of assigning key,iv => issue: encrypt/decrypt correctly e…
Browse files Browse the repository at this point in the history
…ven after changing key (due to length)
  • Loading branch information
pulkit4tech committed Jun 18, 2016
1 parent e7377ad commit 601fc7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/reel/session/crypto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module Session
module Crypto

# key and iv (should be atleast 16 char long)
KEY = 'reel::session::secret_key::%s'
IV = 'reel::session::base_iv::%s'
KEY = '%sreel::session::secret_key'
IV = '%sreel::session::base_iv'

def encrypt val
cipher = OpenSSL::Cipher::AES128.new :CBC
Expand Down

0 comments on commit 601fc7e

Please sign in to comment.