function encrypt_private_key(password, private_key) { let public_key = private_key.substring(64,128); let priv = sodium.from_hex(private_key.substring(0,64)); if (password.length > 0) { for (i=0; i