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

Did not generate encrypted content with "--share" #182

Closed
Nigh opened this issue Jun 26, 2023 · 1 comment
Closed

Did not generate encrypted content with "--share" #182

Nigh opened this issue Jun 26, 2023 · 1 comment
Labels

Comments

@Nigh
Copy link

Nigh commented Jun 26, 2023

I want to generate encrypted content and the hash password at once:

staticrypt .\example\index.html --short -p 123456 --share

But this command just output the hash password only, which the line below could generates the encrypted content.

staticrypt .\example\index.html --short -p 123456

@Nigh Nigh added the bug label Jun 26, 2023
@robinmoisson
Copy link
Owner

robinmoisson commented Jun 28, 2023

Thanks for reporting - the behavior is as expected but the documentation is wrong, I'll fix that.

Behavior changed in staticrypt v3 which supports encrypting multiple files natively, to allow for getting the share link without having to re-encrypt something. I think another person was confused by the new behavior, so maybe this is debatable. I'd consider it a breaking change to change though, so it's not going to change right away.

If you want to do both in a single command you'll have to do

staticrypt .\example\index.html --short -p 123456 && staticrypt --short -p 123456 --share

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

No branches or pull requests

2 participants