changing the encryption module to use node's encryption instead of the js lib