Back

关于 WKD 电子邮件的映射本地部分 32 位字符串计算方法

试图弄明白 0@ftls.xyz WKD 为什么是 https://ftls.xyz/.well-known/openpgpkey/hu/s3cj9timbzrn3hjyu8ehfiykzgkqooec

WKD 服务草案 https://datatracker.ietf.org/doc/draft-koch-openpgp-webkey-service/

The request URL looks like
https://example.org/.well-known/openpgpkey/hu/XXXX
With XXXX being a 32-char long string constructed of the mapped local part of the email, SHA-1 hashed and z-Base-32 encoded.
The reason for using this encoding instead of a standard hex encoding is to visually distinguish such an item from a fingerprint. Furthermore, in contrast to Base-64 and other Base-32 encodings, z-Base-32 has been optimized for easier human use.

from https://wiki.gnupg.org/EasyGpg2016/PubkeyDistributionConcept

根据描述,对 0@ftls.xyz 其中 0 进行 sha1 ,然后 z-Base-32 编码就行了。

z-base32 算法参考 from https://philzimmermann.com/docs/human-oriented-base-32-encoding.txt

GPG Web Key Directory
https://www.ftls.xyz/posts/2024-02-15-wkd/
Author 恐咖兵糖
Published at
Copyright CC BY-NC-SA 4.0