add js cryptography functions