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.

base64について

Last updated at Posted at 2022-08-30

暗号化

 しばしば文字サイズを気にすることがあるのでメモ

  • 文字サイズについて

    変換後のバイト数 = ( 文字 * バイト数 + ・・・ ) + Block数 - mod ( ( 文字 * バイト数 + ・・・) , Block数)

    • 文字数:入力文字列のバイト数(合計)

    • バイト数:文字のバイト数

      UTF-8 バイト数
      英文字 2 Bytes
      ひらがな / カタカナ 3 Bytes
      漢字 3 or 4 Bytes JIS X 0213の第3・4水準漢字の一部が4Bytes
    • Block数:文字数により値が決定される

      文字数 Block数
      1から7 16
      8から15 32
      etc. etc.
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?