Base32 包含前向纠错 (FEC)?
我正在尝试找到(或通过管道连接)一种加密文本的方法,以便输出采用 Base32 编码并通过前向纠错来防止丢失字符。
有一些 base32
输出,如 NBSWY3DPEB3W64TMMQXAU===
我想传输它,即使收到 NBS_Y3D_EB3W_TMMQXAU===
("_ " = 缺少字符)或收到 NISWY3DZEB3W6WTMMQXQU===
(错误字符) 我想要一个正确的de-base32
然后我可以通过管道进行解密。
详细说明:
这是纯粹假设的情况,在这种情况下,我必须通过电话、短波或任何其他口头文本或莫尔斯信道传输编码消息。即没有任何“数字”可以处理>5位文本。另一方面,人类将拾取并转录该消息,然后将其输入计算机进行解密。
我尝试过 openssl enc -e -aes256 -k "12345" -nosalt -pbkdf2|base32 (-nosalt
仅用于重复尝试的人眼验证),但是没有任何 FEC。
将 openssl
输出通过管道输送到某些 FECing 工具(redupe
、fecsum
、par2
),然后输送到 base32
计算结果会产生不可靠的 FEC,因为 base32 不喜欢丢失任何字符。
据我所知,FECing 工具的输出不会产生 Base32 输出。我站在这里,基本上是在寻找一个由包含的 FEC 机制(LDPC、汉明码等)强化的 Base32 实现。
有什么想法吗?
I am trying to find (or pipe together) a way to encrypt text so that the output is base32 encoded and protected by forward error correction against lost characters.
Having some some base32
output like NBSWY3DPEB3W64TMMQXAU===
I would like to transmit it, and even if NBS_Y3D_EB3W_TMMQXAU===
is received ("_" = missing character) or NISWY3DZEB3W6WTMMQXQU===
is received (wrong characters) I'd like a correct de-base32
that I can then pipe to my decryption.
In detail:
This is for a purely hypothetical situation in which I must transmit an encoded message via telephone, shortwave or any other spoken text or morse channel. I.e. nothing "digital" that can handle >5 bit text. On the other side, a human will pick up and transcribe the message and then feed it into a computer for decryption.
I've tried openssl enc -e -aes256 -k "12345" -nosalt -pbkdf2|base32
(-nosalt
just for human eyed verification of repeated attempts), but that doesn't have any FEC.
Piping the openssl
-output into some FECing tool (redupe
, fecsum
, par2
) and then base32
ing the result yields unsuable FEC as base32 doesn't like any characters to be missing.
The output of the FECing tools that I know produce no base32 output. And here I stand, basically looking for a base32 implementation that is hardened by an included FEC mechanism (LDPC, Hamming codes etc.).
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论