Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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

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/

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away