LoginSignup
8
3

More than 3 years have passed since last update.

コマンドラインでランダムなパスワードに使えそうな文字列をさくっと作る

Last updated at Posted at 2019-08-27

アルファベット+数字+記号

openssl rand -base64 6

6 の部分を変更すると文字列長を変更できます。

結果結果(サンプル)

64rbP0Ln/08=

アルファベット小文字 + 数字

openssl rand -hex 4

4 の部分を変更すると文字列長を変更できます。

hexを使用しているためアルファベットはa-fまでしか使われずパスワードとして十分強力ではないため文字列を長めにして使用することをおすすめします。

結果(サンプル)

76d5736c
8
3
1

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
8
3