KeyRecover

Key-pair recovery generator

Constructors

this
this(HashNet net)
this
this(HashNet net, Document doc)
this
this(HashNet net, RecoverGenerator generator)

Members

Functions

createKey
void createKey(const(string[]) questions, const(char[][]) answers, uint confidence)

Creates the key-pair

createKey
void createKey(const(ubyte[][]) A, uint confidence)

Ditto except is uses a list of hashes This can be used of something else than quiz is used

findSecret
bool findSecret(ubyte[] R, const(string[]) questions, const(char[][]) answers)

Generate the private-key from quiz (correct answers)

findSecret
bool findSecret(ubyte[] R, Buffer[] A)

Recover the private-key from the hash-list A The hash-list is usually the question+answers hash

quiz
immutable(ubyte)[][] quiz(const(string[]) questions, const(char[][]) answers)

Generates the quiz hash of the from a list of questions and answers

quizSeed
void quizSeed(const(ubyte[]) R, const(ubyte[][]) A, uint confidence)

Generates the quiz seed values from the privat key R and the quiz list

toDoc
const(Document) toDoc()

Static functions

numberOfSeeds
uint numberOfSeeds(uint M, uint N)

Total number of combination of possible seed value