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

ptcipher -o errors out without prompting for a password #175

Open
clach04 opened this issue Nov 29, 2024 · 0 comments
Open

ptcipher -o errors out without prompting for a password #175

clach04 opened this issue Nov 29, 2024 · 0 comments

Comments

@clach04
Copy link
Owner

clach04 commented Nov 29, 2024

Works fine if password passed on the command line, --cipher parameter makes no difference.

Usability bug:

C:\tmp\enc>C:\code\puren_tonbo\py3.12.5venv\Scripts\ptcipher.exe --encrypt -o hello.chi hello.txt

18496 48600 2024-11-29 12:24:23,842 - C:\code\puren_tonbo\puren_tonbo\tools\ptcipher.py ptcipher.py:203 main() - ERROR - PurenTonboBadCall('need password or key')
Traceback (most recent call last):
  File "C:\code\puren_tonbo\puren_tonbo\tools\ptcipher.py", line 198, in main
    handler = handler_class(key=password)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\code\puren_tonbo\puren_tonbo\__init__.py", line 231, in __init__
    raise PurenTonboBadCall('need password or key')
puren_tonbo.PurenTonboBadCall: need password or key
ptcipher Encrypt/Decrypt problem. PurenTonboBadCall('need password or key')


C:\tmp\enc>C:\code\puren_tonbo\py3.12.5venv\Scripts\ptcipher.exe --encrypt -o hello.chi --cipher=.chi  hello.txt

42828 21696 2024-11-29 12:25:24,612 - C:\code\puren_tonbo\puren_tonbo\tools\ptcipher.py ptcipher.py:203 main() - ERROR - PurenTonboBadCall('need password or key')
Traceback (most recent call last):
  File "C:\code\puren_tonbo\puren_tonbo\tools\ptcipher.py", line 198, in main
    handler = handler_class(key=password)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\code\puren_tonbo\puren_tonbo\__init__.py", line 231, in __init__
    raise PurenTonboBadCall('need password or key')
puren_tonbo.PurenTonboBadCall: need password or key
ptcipher Encrypt/Decrypt problem. PurenTonboBadCall('need password or key')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant