encpipe icon indicating copy to clipboard operation
encpipe copied to clipboard

RFE: -p without an argument should prompt for a password

Open kevinclevenger opened this issue 5 years ago • 1 comments

With password re-entry confirmation similar to 'openssl enc ...'

kevinclevenger avatar Jan 01 '20 17:01 kevinclevenger

I add this, prompt for password when no -p and no -P:

    if (ctx->has_key == 0) {
        if (ctx->encrypt == -1) usage();
        else {
        	printf("password:");
        	char password[512];
        	scanf("%s", password);
        	derive_key(ctx, password, strlen(password));
        }
    }    

badiku avatar Dec 31 '23 11:12 badiku