Base32エンコーダー/デコーダー
Base32テキストをエンコード・デコードします。TOTP認証シークレットやファイル共有システムで一般的に使用。
About Base32:
- • Uses 32 characters: A-Z and 2-7
- • Case-insensitive (unlike Base64)
- • No special characters that could be confused
- • Commonly used in TOTP (2FA), file hashes, and data encoding
- • 20% less efficient than Base64 but more human-readable
Base32エンコード(RFC 4648) - 技術的な詳細
Base32エンコードは32文字のアルファベット(A-Zと2-7)を使用してバイナリデータを表します。大文字小文字を区別せず、曖昧な文字を避けるため、TOTPシークレットに一般的に使用されます。エンコードによりデータサイズは約60%増加しますが、人間が読める出力を提供します。
コマンドラインでの代替方法
# Using Python
python3 -c "import base64; print(base64.b32encode(b'Hello').decode())"
# Decode
python3 -c "import base64; print(base64.b32decode('JBSWY3DP').decode())"