Scrypt Example Hash Composition
#1
I do not understand the example SCRYPT Hash composition. I am trying to recreate the example hash to understand, from what I can infer the hash appears to be composed as follows..

   SCRYPT:N:r:p:b64encoded(salt):b64(hash)

I think my confusion is caused by the last two segments in which a hash of length 64 appears to be separated into a segment of length 20 and a segment of length 44 with each being base64 encoded.

I am generating my own hashes like this..
   Python SCRYPT Library -- https://pypi.python.org/pypi/scrypt/
   scrypt.hash(password.encode('utf-8'), str(salt), N=1024, r=1, p=1, buflen=64).encode('hex')
 
   Is the process to create the hash generate 32 bit hash from salt concatenated with password. then base64 encoded and append the salt, and resulting hash as the last two segments?


I cracked the example hash and spit it out in the form..

   hash:[salt:]:plain:hex_plain

it is still unclear to me how the last two segments of the example hash are generated and what their semantic meaning is.

If there is documentation about how the example hash is created I would be happy to look that over, my search_fu was not able to find anything. I am looking at https://tools.ietf.org/html/draft-josefs...ypt-kdf-05 but have not found the answers yet.

cheers.


Messages In This Thread
Scrypt Example Hash Composition - by norfSprite - 08-17-2016, 08:02 PM
RE: Scrypt Example Hash Composition - by atom - 08-19-2016, 09:22 AM
RE: Scrypt Example Hash Composition - by philsmd - 08-19-2016, 09:41 PM
RE: Scrypt Example Hash Composition - by kiara - 04-12-2018, 06:47 PM