hankcoder has asked for the wisdom of the Perl Monks concerning the following question:
Hi, in base64 encoded string, I would like to know if there are any future conflict or any complication if I remove encoded strings that ends with equal characters "=" ?
I'm using MIME::Base64, encode_base64($str,"");
For some strings after encoded will have trailing equal character(s). Some with 1 characters some with 2 characters. I have tested myself by removing all equal characters and decode it back without any problem.
I just would like to seek for experienced guru here is it ok if I completely remove all equal characters in base64 encoded string?
Also I'm not quite understand of 65-character subset ([A-Za-z0-9+/=]). Does this means the encoded strings will contain such characters?
I understand A-Za-z0-9, but +/= means what characters?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Remove base64 encoded trailing character
by Corion (Patriarch) on Mar 26, 2016 at 18:00 UTC | |
by hankcoder (Scribe) on Mar 26, 2016 at 18:09 UTC | |
by FreeBeerReekingMonk (Deacon) on Mar 26, 2016 at 18:21 UTC | |
by hankcoder (Scribe) on Mar 27, 2016 at 17:50 UTC |