LoginSignup
0
0

More than 1 year has passed since last update.

シークレットキー作成

Posted at

nodeのcryptoモジュールを使うと簡単にシークレットキーを作成できます。

npm i crypto
node
> require('crypto').randomBytes(64).toString('hex')
'032bb3825ed806cc184267557995068ea4eee83ec7559f0f38fbdba3527193d47854ba8836c8a78ac8f8e959ad6918a38be18c3d0fec332082d62f84a3e84198'

↓こちらの動画の4:15:00ぐらいに出てたテクニックです。
https://www.youtube.com/watch?v=f2EqECiTBL8&t=14985s&ab_channel=DaveGray

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