scrypt sample code