update outputs

pull/1/head
Avril 4 years ago
parent 80246388cd
commit 16a76fc4e3
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -3,12 +3,13 @@
** Example output
Input is =uguu~= using the default salt.
| Algorithm | Output |
|--------------------+------------------------------------------------------------------|
| SHA256 | おシソまツアでぅせツモァだゅノびヲろぢォセつマぶけぁユねハァがゅ |
| CRC32 | わぼぢァ |
| CRC64 | づやワえぼちレこ |
| SHA256 (truncated) | おシソまツアで |
| SHA256 | おシソまツアでぅせヅモァだゅノぴヲろヂォセづマふげぁユねハァがゅ |
| CRC32 | わほヂァ |
| CRC64 | づやワえほぢレご |
| SHA256 (truncated) | おシソまツアで |
** Installation
The dynamic library is built with ~Cargo~ and ~Rust~, and the CLI example program is built with ~gcc~.
@ -230,7 +231,7 @@
The strings generated by this library are meant to be pretty, not secure. It is not a secure way of representing a hash as many collisions are possible.
*** Digest algorithm
The kana algorithm is a 16-bit block digest that works as follows:
The kana algorithm is a 16-bit block digest that works as follows:
- The most and least significant 8 bits are each seperated into /Stage 0/ and /Stage 1/ each operating on the first and second byte respectively.
- Stage 0:
1. The byte is sign tested (bitwise ~AND~ =0x80=), store this as a boolean in /sign0/.
@ -247,9 +248,9 @@ The kana algorithm is a 16-bit block digest that works as follows:
3. If there was no value set from the sub table, the 2nd output character becomes the first output character from inputting the 2nd byte back through /Stage 0/ as the first byte.
- Concatenate both characters and move to the next 16-bit block.
Notes:
Notes:
- It is valid for a single iterator to produce between 0 and 2 characters but no more.
- If an input given to the algorithm that cannot be divided exactly into 16-bit blocks (i.e. one byte is left over), a padding byte of 0 is added as the 2nd byte to make it fit.
For more information see [[file:./src/mnemonic.rs][mnemonic.rs]].
For more information see [[file:./src/mnemonic.rs][mnemonic.rs]].
** License
GPL'd with love <3

Loading…
Cancel
Save