Porting node.js encryption function to Elixir

This has to be answer of the year!!! Awesome work.