(Rough) Implementation of Scrypt.