Just curious, I couldn't find the 22.00 binary for mac OS. May I know why ? Thanks.
I would not suggest a file per say, because writing a password to a file can be vulnerable and not recommended. When I was searching only, I came across the following links on how this case can be handled. sudo has an switch option which can be used to accept password via stdin where as postgres can accept password via environment variable PGPASSWORD along with an handling to remove it from being shown in process information which can be checked from cat /proc/(pid)/environ | grep "PGPASSWORD". Anyway,...
Yes. Using this method, we can hide password without needing a entire new approach.
Just sharing more info. When passing password via -p parameter, p7zip hides the password from args. p7zip - /usr/lib/p7zip/7z a archive.zip /mnt/e/git -p**** 7zzs - ./7zzs a archive.7z /mnt/e/git -p1234
I would not recommend a writing password to a file because it will be vulnerable. My suggestion would to be provide a separate switch which reads the password from stdin (like how sudo) or a environment variable based approach like using PGPASSWORD for postgres.
Hi I have a java process which executes 7zzs binary to created a password protected archive. When I pass the password using -p option like -p(password) , the supplied password can be retrieved using ps -p [pid] -o args . The process is getting struck when I pass the password via Process.getOutputStream() . Kindly need help regarding this and guidance on handling this case if I am doing it wrongly. Updated 1 : This issue occurs in Linux OS
Hi I have a java process which executes 7zzs binary to created a password protected archive. When I pass the password using -p option like -p(password) , the supplied password can be retrieved using ps -p [pid] -o args . The process is getting struck when I pass the password via Process.getOutputStream() . Kindly need help regarding this and guidance on handling this case if I am doing it wrongly.
Hi Igor, Kindly consider providing seven zip binaries as portable standalone console version for ARM64 architecture.