Skip to content

Is it possible to enter the password before? #21

Answered by samuel-lucas6
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Hi ,
I'am new in use of crypto and I would like to know if it's possible to enter the password when I do " Kryptor -y 'public key' -e file to encrypt "( before the terminal ask me ) . Am I obligated ton modify PassowrdPrompt ?

When specifying a public key, Kryptor will use your private key for encryption rather than asking for a password. As for your other question, it's not possible to specify a password as part of the command because passwords shouldn't really be stored as strings. Strings are immutable in .NET and cannot be zeroed out, so I decided to store the password in a char array instead.

However, you could modify the -p|--password option to have CommandOptionType.SingleValue i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samuel-lucas6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question I want to know everything there is to know
2 participants
Converted from issue

This discussion was converted from issue #17 on May 13, 2021 11:50.