羅漢塔最少步驟_如何以最少的步驟壓縮和密碼保護文件?

羅漢塔最少步驟

羅漢塔最少步驟

If you have a large batch of files to compress and you want to add password protection to each of them, what is the simplest or quickest way to do so? Today’s SuperUser Q&A post has the answer to a curious reader’s question.

如果要壓縮大量文件,并且要為每個文件添加密碼保護,最簡單或最快的方法是什么? 今天的“超級用戶問答”帖子回答了一個好奇的讀者的問題。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“問答”環節由SuperUser提供,它是Stack Exchange的一個分支,該社區是由社區驅動的Q&A網站分組。

問題 (The Question)

SuperUser reader DAE wants to know how to zip and password protect files in as few steps as possible:

SuperUser閱讀器DAE希望知道如何以最少的步驟壓縮和保護文件:

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.

我需要一種方法來提取一堆文件并將它們壓縮為單獨的zip文件,每個文件都使用相同的密碼。 我希望能夠通過一個簡單的步驟來完成此操作。 我創建了一個批處理文件,該文件使用7zip(非常有效)對每個文件進行了壓縮,但沒有密碼保護它們。

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?

是否可以添加到包含密碼的批處理文件中? 或者,如何創建批處理文件以密碼保護壓縮文件?

How do you zip and password protect files in as few steps as possible?

如何以最少的步驟壓縮和密碼保護文件?

答案 (The Answer)

SuperUser contributor DavidPostill has the answer for us:

超級用戶貢獻者DavidPostill為我們提供了答案:

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.

使用-p選項,-p(設置密碼)開關,它指定密碼。

Syntax

句法

  • -p{password}

    -p {密碼}

{password} specifies the password

{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.

使用密碼“ secret”將* .txt文件壓縮為archive.7z。 它還會加密存檔頭(-mhe開關),以便對文件名進行加密。

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

    7z存檔7z -psecret -mhe * .txt

If compressing folders:

如果壓縮文件夾:

  • “C:\Program Files (x86)\7-Zip\7z.exe” a “%%X.zip” -psecret “%%X\”

    “ C:\ Program Files(x86)\ 7-Zip \ 7z.exe”“ %% X.zip” -psecret“ %% X \”

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

使用密碼“ secret”從archive.zip中提取所有文件。

  • 7z x archive.zip -psecret

    7z x archive.zip -psecret

Source: -p (set Password) switch

來源:-p(設置密碼)開關



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么補充說明嗎? 在評論中聽起來不錯。 是否想從其他精通Stack Exchange的用戶那里獲得更多答案? 在此處查看完整的討論線程。

翻譯自: https://www.howtogeek.com/300790/how-do-you-zip-and-password-protect-files-in-as-few-steps-as-possible/

羅漢塔最少步驟

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/280587.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280587.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280587.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

IoTSharp中使用X509加密MQTT通訊并實現設備鑒權

IoTSharp支持MQTT協議通過 TLS 1.2 加密通訊, 并可以通過X509證書進行設備認證登錄。基本配置在 appsettings.Production.json中需要 指定域名, 并設置EnableTls為true"MqttBroker":{"DomainName":"http://demo.iotsharp.net:2…

IBM希望其“裁剪”過的Swift能夠引誘你使用BlueMix云

現在所有人都可以使用了——微軟頂尖的工程師表示,“呼吸新鮮的空氣吧!” 據Stack Overflow的估計,Swift在最受歡迎的編程語言中排名第二,該語言已經出現在了IBM的BlueMix云平臺之上,供所有人使用。 她從今年二月份開始…

物理層、數據鏈路層、介質訪問控制子層

物理層 物理層定義了比特作為信號在信道上發送時相關的電氣、時序和其它接口,物理層是構建網絡的基礎。數據通信理論基礎:改變諸如電壓或者電流等某種物理特性的方法可用來在電線上傳輸信息,如果用一個以時間t為自變量的單值函數 f(t) 來表示…

如何批量刪除指定的GitHub Repos

正常情況下,如果需要刪除GitHub上不需要的repos,手動刪除的操作有點繁瑣。如果只要刪除一個還能接受,手動刪除多個repos就有點浪費時間了。其實我們可以通過GitHub的API接口來批量刪除不需要的repos。 將要刪除的repos按照username\repos-nam…

django12:form 組件/渲染標簽/數據校驗/鉤子函數/

基本用法 from django import forms# 自己寫一個類 class RegForm(forms.Form):username forms.CharField(min_length3,max_length8, label"用戶名")password forms.CharField(min_length3,max_length8,label"密碼")emailforms.EmailField() 1.校驗數據為…

如何快速擁有一個 Web IDE

本文將介紹如何使用 2-3 句指令在幾分鐘內創建一個 Web IDE 環境。服務器準備如何準備服務器可以參考上文 一鍵體驗 Istio,這里只需要一臺即可,示例中的服務器 IP 為:43.154.189.116安裝 Web IDE下載安裝工具在服務器上,執行以下指…

有了防火墻、IPS、WAF 還需要數據庫審計?

本文講的是 有了防火墻、IPS、WAF 還需要數據庫審計?,“我們的網絡安全系統中已經有了Web應用防火墻、網絡防火墻和IPS,難道還需要數據庫審計嗎?”很多人有這樣的疑問,網絡中有層層防護,還不能保護數據庫的…

20155339 Exp4 惡意代碼分析

20155339 Exp4 惡意代碼分析 實驗后回答問題 (1)如果在工作中懷疑一臺主機上有惡意代碼,但只是猜想,所有想監控下系統一天天的到底在干些什么。請設計下你想監控的操作有哪些,用什么方法來監控。 監控網絡連接。當某個…

Linux就該這么學---第七章(LVM邏輯卷管理器)

第七章節-LVM技術邏輯卷管理器(LVM,Logical Volume Manager)1.物理卷(PV,physical Volumn)2.卷組(VG,Volume Group)3.邏輯卷(LV,Logical Volume)基本單元[PE,Physical Extent] 物理卷處于LVM中的最底層,可以將其理解為物理硬盤、硬盤分區或者RAID磁盤陣列卷組建立在…

django13:Session與Cookie操作

Session與Cookie cookie 服務端保存在客戶端瀏覽器上的信息都可以教cookie 表現形式一般是k:v鍵值對(可以多個) 優化: 隨機字符串1:用戶1相關信息 隨機字符串2:用戶2相關信息 session 數據是保存在服務端 表現形…

從Windows XP升級? 這是您需要了解的Windows 7

With Windows XP reaching the end of its long support life, many businesses and individuals are avoiding Windows 8 and upgrading to Windows 7 instead. If you’re a latecomer to Windows 7, here are the basics you need to know. 隨著Windows XP使用壽命的延長&am…

Java迭代器原理

1迭代器模式 迭代器是一種設計模式,這種模式用于順序訪問集合對象的元素,不需要知道集合對象的底層表示。 一般實現方式如下:(來自) public interface Iterator {public boolean hasNext();public Object next(); } pu…

企業版Java EE正式易主 甲骨文再次放手

有人說甲骨文收購的東西大多沒有了好下場,這么說雖然有些片面,但是最近一個月Java EE和Solaris的境遇難免讓人產生類似的聯想。 繼筆者上次報道《甲骨文將放棄Java EE 開源基金會雙手歡迎》之后,最新消息顯示,原本在甲骨文手中的J…

js中各種位置

js中各種位置 js中有各種與位置相關的屬性,每次看到的時候都各種懵逼。索性一次總結一下。 clientHeight 內容可視區域的高度。包括padding不包括border、水平滾動條、margin。對于inline的元素這個屬性一直是0,單位px,只讀元素。offsetHeight offsetHei…

如何判斷您是否擁有32位或64位版本的Google Chrome瀏覽器

Google Chrome is extremely popular with our readers, but did you know that they also have a 64-bit version of the browser these days? Here’s how to tell which version you are running, and how to switch if you aren’t. 谷歌瀏覽器在我們的讀者中非常受歡迎&a…

django14:CBV加入裝飾器

加在方法上面 from django.utils.decorators import method_decoratorclass HomeView(View):def dispatch(self, request, *args, **kwargs):return super(HomeView, self).dispatch(request, *args, **kwargs)def get(self, request):return render(request, "home.html&…

Kubernetes 跨集群流量調度實戰 :訪問控制

背景眾所周知,Flomesh 的服務網格產品 osm-edge[1] 是基于 SMI(Service Mesh Interface,服務網格接口) 標準的實現。SMI 定義了流量標識、訪問控制、遙測和管理的規范。在 上一篇 中,我們體驗過了多集群服務&#xff0…

python下sqlite增刪查改方法(轉)

sqlite讀寫 #codingutf-8 import sqlite3 import os #創建數據庫和游標 if os.path.exists( test.db):connsqlite3.connect( test.db)curconn.cursor() else:connsqlite3.connect( test.db)curconn.cursor()#創建表 cur.execute(CREATE TABLE IF NOT EXISTS customer (ID VARCH…

Apache HTTP Server 與 Tomcat 的三種連接方式介紹

本文轉載自IBM developer 首先我們先介紹一下為什么要讓 Apache 與 Tomcat 之間進行連接。事實上 Tomcat 本身已經提供了 HTTP 服務,該服務默認的端口是 8080,裝好 tomcat 后通過 8080 端口可以直接使用 Tomcat 所運行的應用程序,你也可以將該…

印象筆記和有道云筆記程序員_記錄,存儲和共享筆記的最佳應用程序和云服務...

印象筆記和有道云筆記程序員Is your desk and computer covered with sticky notes? Do you have miscellaneous pieces of paper with bits of information buried in drawers, your laptop case, backpack, purse, etc.? Get rid of all the chaos and get organized with …