{"id":173,"date":"2019-09-25T11:30:47","date_gmt":"2019-09-25T09:30:47","guid":{"rendered":"https:\/\/expanic.at\/wordpress\/?p=173"},"modified":"2019-09-25T12:29:25","modified_gmt":"2019-09-25T10:29:25","slug":"macos-zip-dateien-mit-kennwort-versehen","status":"publish","type":"post","link":"https:\/\/expanic.at\/wordpress\/2019\/09\/25\/macos-zip-dateien-mit-kennwort-versehen\/","title":{"rendered":"macOS > .zip Dateien mit Kennwort erstellen"},"content":{"rendered":"\n<p>Mithilfe des Terminals kann man eine Datei oder einen Ordner \u00abzippen\u00bb und mit einem Kennwort versehen:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"942\" height=\"379\" src=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/09\/zip-er.png\" alt=\"\" class=\"wp-image-174\" srcset=\"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/09\/zip-er.png 942w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/09\/zip-er-300x121.png 300w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/09\/zip-er-768x309.png 768w, https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/09\/zip-er-552x222.png 552w\" sizes=\"auto, (max-width: 942px) 100vw, 942px\" \/><\/figure>\n\n\n\n<p><em>Der Befehl f\u00fcr einen Ordner lautet:<\/em><br><br><code>zip -er ~\/Desktop\/ORDNERNAME.zip ~\/Desktop\/ORDNERNAME<\/code><br><br><em>(Falls es sich um einen Datei handelt einfach die Option -r weglassen)<\/em><\/p>\n\n\n\n<pre class=\"wp-block-verse\">zip - package and compress (archive) files<br><br>-e<br>        --encrypt<br>               Encrypt the contents of the zip archive using a password which is entered on the terminal in response to a prompt (this will not be echoed; if<br>               standard error is not a tty, zip will exit with an error).  The password prompt is repeated to save the user from typing errors.<br><br>-r<br>        --recurse-paths<br>               Travel the directory structure recursively; for example:<br> <code>                 zip -r foo.zip foo           or more concisely                  zip -r foo foo           In  this  case,  all  the  files  and directories in foo are saved in a zip archive named           foo.zip, including files with names starting with \".\", since the recursion does  not  use           the  shell's  file-name  substitution  mechanism.  If you wish to include only a specific           subset of the files in directory foo and its subdirectories, use the -i option to specify           the  pattern  of  files  to be included.  You should not use -r with the name \".*\", since           that matches \"..\"  which will attempt to zip up the parent directory (probably  not  what           was intended).           Multiple source directories are allowed as in                  zip -r foo foo1 foo2           which first zips up foo1 and then foo2, going down each directory.           Note  that  while wildcards to -r are typically resolved while recursing down directories           in the file system, any -R, -x, and -i wildcards are applied to  internal  archive  path-           names  once the directories are scanned.  To have wildcards apply to files in subdirecto-           ries when recursing on Unix and similar systems where the shell does  wildcard  substitu-           tion,  either  escape  all wildcards or put all arguments with wildcards in quotes.  This           lets zip see the wildcards and match files in subdirectories using them as it recurses.<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p class=\"post-excerpt\">Mithilfe des Terminals kann man eine Datei oder einen Ordner \u00abzippen\u00bb und mit einem Kennwort versehen: Der Befehl f\u00fcr einen&#8230;<\/p>\n","protected":false},"author":5,"featured_media":174,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein"],"jetpack_featured_media_url":"https:\/\/expanic.at\/wordpress\/wp-content\/uploads\/2019\/09\/zip-er.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/comments?post=173"}],"version-history":[{"count":4,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":178,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/posts\/173\/revisions\/178"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/media\/174"}],"wp:attachment":[{"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/media?parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/categories?post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expanic.at\/wordpress\/wp-json\/wp\/v2\/tags?post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}