update encryptor.rb cipher method and add decrypt method