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?

More than 1 year has passed since last update.

【暗号化】AES256について個人的メモ

Last updated at Posted at 2022-02-26

暗号化でよく使うAES256の設定についてまとめておきます。

◇よく使う設定
・暗号利用モード(CBC)
・パディング方式(PKCS#7 Padding)
・共通鍵
・初期化ベクトル

暗号利用モード(CBC)

ブロックごとに暗号化するメカニズム。
最初のブロックについては初期化ベクトルを使用して暗号化。
次のブロックからは、前のブロックと該当ブロックをXOR計算した結果を返す

※ブロックとは
AES256だと256バイト=32文字となるので32文字で1ブロック

パディング方式(PKCS#7 Padding)

分割する際にブロックを割り切れない場合、穴埋めする

共通鍵

AES256の場合、32桁の文字列。

初期化ベクトル

16桁固定の文字列

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?