Cannot decode base64 in MemoryBlock from e.g. python base64 encoder


#1

Hi Jules,
any chance to get a “proper” base64 decoder?

Unfortunately I tried a whole day to fix my cryptography… rather pointless, if the input is already wrong :frowning: but sure, that’s my problem…

Thanks,
daniel

See also:
2008: base64 encoding algorithm in memoryblock is wrong?
2014: ‘standard’ base64 encode/decode?


BlowFish String Encryption
#2

It’s already there: https://www.juce.com/doc/structBase64


#3

@yfede great, you made my day.
Now I can dump my implementation, the structBase64 works perfect…


#4

@jules can you please put a note in MemoryBlock::fromBase64Encoding documentation, that this is not the “original” base64 format? Maybe with a see also to Base64::convertFromBase64?
Thanks