base64 encoding that doesn't use “+/=” (plus or equals) characters?

前端 未结 6 1380
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 01:17

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

6条回答
  •  情话喂你
    2020-12-11 01:51

    Sure. Why not write your own Base64 encoder/decoder, but replace those chars in your algorithm. Sure, it will not be able to be decoded with a normal decoder, but if that's not an issue, then whyt worry about it. But, you better have at least 3 other chars that ARE useable in your app to represent the +/ and ='s...

提交回复
热议问题