Litecoin Scrypt hashing function for Ruby