Is it ok to remove the equal signs from a base64 string?
问题 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 do to ensure the length of the resulting string is fixed? >>> base64.b64encode(combined.digest(), altchars="AB") 'PeFC3irNFx8fuzwjAzAfEAup9cz6xujsf2gAIH2GdUM=' Thanks. 回答1: Looking at your code: >>> base64.b64encode(combined.digest(), altchars="AB") 'PeFC3irNFx8fuzwjAzAfEAup9cz6xujsf2gAIH2GdUM=' The string that's being