LoginSignup
1
2

More than 1 year has passed since last update.

.NETでの暗号化について

Last updated at Posted at 2021-12-01

.NETでの暗号化について

Microsoftでは以下のように暗号化を推奨している

暗号化時のキーとベクタの生成は以下が参考になる(上記ページの続きにある)

実際の参考になるコードは以下の記事が参考になった
https://qiita.com/tera1707/items/a0dc441a7a432433d84d

暗号化時のbyte桁数は規定値では16の倍数になる
以下のURLのサンプルコード参照
https://atmarkit.itmedia.co.jp/ait/articles/1709/06/news020.html
実際には0~15文字をEncoding.UTF8.GetBytes(string)した時には16バイトになる
そこから16~31文字は32バイト、32~47文字は48バイト...という感じになる

1
2
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
1
2