Forum Moderators: coopster
eg.
base64_encode('This is an encoded string') ==> 'VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw='
and
base64_deocde('VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZw') ==> 'This is an encoded string'
So removing the '='s from the end is no prob? (they are there from 'completion' anyway right?)
After trying several examples it seemed removing = doesn't make a difference when decoding (at least in PHP) - but I decided to double-check here anyway.
Since = is used for padding (ie. indicate the addition of 0s at the end), the base64_decode function in PHP seems to take care of this if '=' are omitted.