added support for scrypt and scrypt-n