Is it ok to remove the equal signs from a base64 string?

前端 未结 6 1034
眼角桃花
眼角桃花 2021-02-02 10:05

I have a string that I\'m encoding into base64 to conserve space. Is it a big deal if I remove the equal sign at the end? Would this significantly decrease entropy? What can I d

6条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 10:59

    those are padding and you don't save much by removing them as there are at most two of them, so if you want to save space look else where. and by the reference to entropy are you compressing these base64 strings? if so even if you do remove them, they will not have much of an effect on the compressed size.

提交回复
热议问题