bee-san / Ares

Automated decoding of encrypted text without knowing the key or ciphers used
MIT License
567 stars 27 forks source link

[Feature] Return keys from ciphers and output them #97

Open SkeletalDemise opened 1 year ago

SkeletalDemise commented 1 year ago

Ares should return the keys found from ciphers like Caesar and print them along with the path. CrackResult already has a key field:

// Key is optional as decoders do not use keys.
pub key: Option<&'static str>,
bee-san commented 1 year ago

This should probably be fixed at the same time as https://github.com/bee-san/Ares/issues/89

bee-san commented 1 year ago

For this we need to not return an array of decoders by name but instead return the crackresult like I originally suggested D:

SkeletalDemise commented 1 year ago

Also we need to change key from a string to a vec. Ciphers like Affine use multiple keys. (a and b)