Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inelegant use of lipsum text generator in Baconian cipher #37

Open
avastmick opened this issue Apr 16, 2018 · 0 comments
Open

Inelegant use of lipsum text generator in Baconian cipher #37

avastmick opened this issue Apr 16, 2018 · 0 comments

Comments

@avastmick
Copy link
Contributor

PR #35 introduced the use of the lipsum crate. This works well and avoids the Baconian code bloating with boilerplate text constants.

However, currently, the usage is rather blunt, inelegant, as simply assigns lipsum text of an arbitrary 160 char length that may break if the plaintext is over ~50 chars in length.

Desired functionality: is that the default decoy text (generated using the lipsum crate) would automatically size to the length of the plaintext passed into the encrypt function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants