updated to use scrypt as the crypto implementation