-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor decrypt function #319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall.
0c74905
to
ba0f87c
Compare
Test reading a public key instead of a private one
Use a passphrase protected file and test with both correct and wrong passphrase.
Unless it can be closed by another thread
This way we can separate the main function form the worker function
This way we don't get prompted for the passphrase in the test.
Aything the user needs to se shuld be printed directly to the correct output channel.
ba0f87c
to
c34b53d
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #319 +/- ##
==========================================
+ Coverage 51.06% 52.83% +1.76%
==========================================
Files 9 9
Lines 1218 1183 -35
==========================================
+ Hits 622 625 +3
+ Misses 522 479 -43
- Partials 74 79 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Description
C4GH_PASSWORD
is set--force-overwrite
optionHow to test
sda-cli decrypt -key KEY FILE
sda-cli decrypt -key KEY --force-overwrite FILE