0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

コマンドでランダムパスワードを生成したい

0
Posted at

概要

皆さんはパスワードを生成する際どうしていますか?

私は下記サイトを今まで使用していましたが、エンジニアたるもの、コマンドでカッコよく生成したいと思う様になりこの記事を書いてます。

生成コマンド

LC_ALL=C tr -dc A-Za-z0-9_ </dev/urandom | head -c 16; echo

A-Za-z0-9_の範囲でランダムな16文字にしてます。
自分はraycastのスニペットにこのコマンドを登録していていつでも呼び出せる様にしてます。便利。

# 出力例
LC_ALL=C tr -dc A-Za-z0-9_ </dev/urandom | head -c 16; echo
rffiAuFBP0_kBWFE

生成するパスの強度については自由にカスタマイズ可能です。エンジニア気分を味わいたい時に是非やってみてね。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?