FPGA implementation of the scrypt algorithm