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

Uncloak fails when using extras/cloak/ciphers/starTrek #522

Open
68420948 opened this issue Jul 21, 2024 · 0 comments
Open

Uncloak fails when using extras/cloak/ciphers/starTrek #522

68420948 opened this issue Jul 21, 2024 · 0 comments
Assignees

Comments

@68420948
Copy link

The cipher extras/cloak/ciphers/starTrek contains trailing whitespace (tabstops) causing 'tomb uncloak ...' to fail like this:

~~ Cloak a key file ...
+ echo ~~ Cloak a key file ...
+ /usr/bin/tomb cloak -k argon2-test.key extras/cloak/ciphers/starTrek cloaked_key.txt
tomb  .  Key is valid.
tomb (*) Encoding key argon2-test.key using cipher extras/cloak/ciphers/starTrek
tomb (*) Tomb key encoded succesfully
~~ Uncloak and verify a key file ...
+ echo ~~ Uncloak and verify a key file ...
+ /usr/bin/tomb uncloak cloaked_key.txt extras/cloak/ciphers/starTrek uncloaked.key
Traceback (most recent call last):
  File "/usr/libexec/tomb/decloakify", line 84, in <module>
    Decloakify(args.input, args.cipher, args.output, args.password)
  File "/usr/libexec/tomb/decloakify", line 66, in Decloakify
    clear64 +=  array64[arrayCipher.index(line)]
                        ^^^^^^^^^^^^^^^^^^^^^^^
ValueError: 'Daniels\n' is not in list
tomb [W] Nothing found in cloaked_key.txt

@jaromil jaromil self-assigned this Jul 22, 2024
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