Javascript and python crypto utility methods.