Base64 について

Base64 について

Security #Security

Base64 について

Base64 はエンコード方式の1つで、RFC 4848 で定義されています。

特徴

  • A–Z, a–z, 0–9,+,/ の64文字で構成される
  • = は Padding として使われる
  • 可逆性のあるエンコード方式で、機密性は担保しない

Examples

(>ᴗ<) < printf '%s' '日本語ABC' | base64
5pel5pys6KqeQUJD

(>ᴗ<) < printf '%s' '5pel5pys6KqeQUJD' | base64 -D
日本語ABC
(>ᴗ<) < printf '%s' '日本語ABC' | openssl base64 -A
5pel5pys6KqeQUJD

(>ᴗ<) < printf '%s' '5pel5pys6KqeQUJD' | openssl base64 -d -A
日本語ABC