LoginSignup
11
11

More than 5 years have passed since last update.

Macでのパスワード付きZipファイルの作り方

Posted at

ランダムなパスワードを作る

cat /dev/urandom | LC_CTYPE=C tr -dc '[:alnum:]' | head -c 10

文字種変えたかったらtrへの引数を適宜変更

パスワード付きでZipアーカイブ

zip -er target_dir.zip target_dir

「Enter password:」って出るはずなのでパスワード入れる
「Verify password:」ってでたらもっかいパスワード入れる

以上

参考)
http://nanapi.jp/76756/
http://karakuridou.net/blog/mac%E3%81%A7%E3%83%A9%E3%83%B3%E3%83%80%E3%83%A0%E3%81%AA%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E7%94%9F%E6%88%90/

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11