base64编码不使用&QUOT + / = QUOT; (加或等于)字符? [英] base64 encoding that doesn't use "+/=" (plus or equals) characters?
问题描述
我要带code约1000个字符的字符串,可以是任意字节值(00-FF)。我不想用十六进制,因为它不是足够密集。使用Base64据我了解的问题是,它包含+ /和=这是我的字符无法在我的应用程序不能容忍的。
I need to encode a string of about 1000 characters that can be any byte value (00-FF). I don't want to use Hex because it's not dense enough. the problem with base64 as I understand it is that it includes + / and = which are characters I can not tolerate in my application.
有什么建议?
推荐答案
由于夏兰说,Base64是不是非常难实现 - 但你可能想看看为其允许您指定的一组自定义现有的库字符来使用。我是pretty肯定有很多在那里,但你没有指定你需要这个的平台。
As Ciaran says, base64 isn't terribly hard to implement - but you may want to have a look for existing libraries which allow you to specify a custom set of characters to use. I'm pretty sure there are plenty out there, but you haven't specified which platform you need this for.
基本上,你只需要其中的 65 ASCII字符的接受 - preferably除换行符
Basically, you just need 65 ASCII characters which are acceptable - preferably in addition to line breaks.
这篇关于base64编码不使用&QUOT + / = QUOT; (加或等于)字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!