Skip to main content
DevTools24

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())"

参考

查看官方规范