Fixed encrypt.js reading pubkey