api environment, crypto and basic coffeescript code