Kaip galite užfiksuoti failų slaptumą ir slaptumą kuo mažiau veiksmų?

Turinys:

Kaip galite užfiksuoti failų slaptumą ir slaptumą kuo mažiau veiksmų?
Kaip galite užfiksuoti failų slaptumą ir slaptumą kuo mažiau veiksmų?

Video: Kaip galite užfiksuoti failų slaptumą ir slaptumą kuo mažiau veiksmų?

Video: Kaip galite užfiksuoti failų slaptumą ir slaptumą kuo mažiau veiksmų?
Video: UFC 289: Nunes vs. Aldana Full Card Previews & Predictions - YouTube 2024, Balandis
Anonim
Jei turite daugybę failų, kuriuos norite suspausti, ir norite, kad kiekvienai iš jų būtų įtraukta slaptažodžio apsauga, koks paprasčiausias ar greitesnis būdas tai padaryti? Šiandien "SuperUser" Q & A įrašas turi atsakymą į įdomų skaitytojo klausimą.
Jei turite daugybę failų, kuriuos norite suspausti, ir norite, kad kiekvienai iš jų būtų įtraukta slaptažodžio apsauga, koks paprasčiausias ar greitesnis būdas tai padaryti? Šiandien "SuperUser" Q & A įrašas turi atsakymą į įdomų skaitytojo klausimą.

Šiandieninė klausimų ir atsakymų sesija pateikiama su "SuperUser" - "Stack Exchange", bendruomenės valdoma Q & A grupių asociacija.

Klausimas

"SuperUser" skaitytuvas DAE nori sužinoti, kaip archyvuoti ir apsaugoti slaptažodžius failus kuo greičiau:

I need a way to take a bunch of files and compress them into separate zip files with each using the same password. I want to be able to do this in one simple step. I have created a batch file that zips each of them using 7zip (which worked perfectly), but does not password protect them.

Is there a command that I can add to the batch file that includes the password? Or alternatively, how can I create a batch file that will password protect the compressed files?

Kaip galite saugoti failus ir failus slapyvardžiu ir slaptažodžiu kuo greičiau?

Atsakymas

"SuperUser" autorius DavidPostill atsakė mums:

How can I create a batch file that will password protect the compressed files?

Use the -p option, -p (set password) switch, which specifies the password.

Syntax

-p{password}

{password} specifies the password

Examples

Compresses *.txt files to archive.7z using the password “secret”. It also encrypts archive headers (-mhe switch) so that the file names will be encrypted.

7z a archive.7z -psecret -mhe *.txt

If compressing folders:

“C:Program Files (x86)7-Zip7z.exe” a “%%X.zip” -psecret “%%X”

Extracts all files from archive.zip using the password “secret”.

7z x archive.zip -psecret

Source: -p (set Password) switch

Ar turite ką nors įtraukti į paaiškinimą? Garsas išjungtas komentaruose. Norite skaityti daugiau atsakymų iš kitų "Tech-savvy Stack Exchange" vartotojų? Patikrinkite visą diskusijų temą čia.

Rekomenduojamas: