C 0000009 mmmv salting algorithm 01

From commentsarchive
Jump to: navigation, search

C 1..100

Saltable data is a single base 10 positive whole number D, $0 \leq D$. $n_{saltdigits}$ is a positive whole number, $1 \leq n_{saltdigits}$.

$x_1 = (D + 1) \cdot 10^{n_{saltdigits}}$

The $n_{saltdigits}$ lowest digits of $x_1$ are replaced with single digit random numbers, which may also be zero.