Tools for handling lightweight hash values that can be encoded to/decoded from tripcodes.
use tripcode::TripcodeGenerator; use tripcode::hash::TripcodeHash; // Generating a hash value from a password. let hash = tripcode::Fourchan::hash(&"password"); assert_eq!(hash, tripcode::hash::FourchanHash(0xD3F6B95622CD44C0)); // Encoding the hash value into a tripcode. let tripcode = hash.encode(); assert_eq!("ozOtJW9BFA", &tripcode); // Decoding back the tripcode into a hash value. let decoded = tripcode::hash::FourchanHash::decode(&tripcode).unwrap(); assert_eq!(decoded, hash);
58-bit hash value that represents a 10-character tripcode i.e. 4chan's tripcode or 2channel's 10-character tripcode (10桁トリップ).
72-bit hash value that represents 2channel's 12-character tripcode (12桁トリップ).
90-bit hash value that represents 2ch.sc's 15-character tripcode (15桁トリップ).
90-bit hash value that represents 2ch.sc's katakana tripcode (カタカナトリップ).
Hash value that represents a 2channel tripcode.
Hash value that represents a 2ch.sc tripcode.
Trait for hash values that represent ASCII-encoded tripcodes.
Trait for hash values that represent tripcodes.