DefaultSha256ChallengeGenerator

The default SHA-256 challenge generator is used to generate challenges which align up with what OldSchool RuneScape is generating, which is a combination of epoch time millis, the world id and a 495-byte BigInteger that is turned into a hexadecimal string, which will have a length of 1004 or 1005 characters, depending on if the BigInteger was negative.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun generate(input: Sha256MetaData): Sha256Challenge

A function to generate a challenge out of the provided metadata.