Solves challenge 11 | Refactor crypto functions to separate file