<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"
<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers
uses username to look up hashed username:password
generates g, N, b and Salt as random big integers
calculates x = hash(Salt, hashed username:password)
calcualtes v = g ^ x % N
calculates B = ((v * k) + (g ^ b % N)) % N
sends B, g, N, Salt
Anything cut to length will be too short.