MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / prepare

Function prepare

src/ciphers/trifid.rs:141–171  ·  view source on GitHub ↗

Prepares the message and alphabet for encryption/decryption. Validates inputs and creates the character-to-number and number-to-character mappings.

(message: &str, alphabet: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

trifid_encryptFunction · 0.85
trifid_decryptFunction · 0.85

Calls 3

lenMethod · 0.45
containsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected