title: Encryption and decryption in Rails using AES-256-CBC
body: <p>I want to secure my rails API using AES-256-CBC algorithm(encryption and decryption). </p>
  
  <p>Sample API url: <a href="http://xx.xxx.xxxx.xx/docs.json?meeting_id=X" rel="nofollow">http://xx.xxx.xxxx.xx/docs.json?meeting_id=X</a>  </p>
  
  <p>Encrypted API: <a href="http://xx.xxx.xxxx.xx/tsdjhsdfbjfbsdjbfsf===2323232sbsdhd" rel="nofollow">http://xx.xxx.xxxx.xx/tsdjhsdfbjfbsdjbfsf===2323232sbsdhd</a>?</p>
  
  <p>The redirection logic is already implemented in routes.rb file. Where should I decrypt the API before sending it to routes file so that the Rails application understands the request format and redirects accordingly with params?</p>
  
  <p>Should this decryption logic be written inside application middleware?</p>