Wasted 1/2 a day reinventing the wheel
The Back Room
2
Posts
2
Posters
0
Views
1
Watching
-
-
I spent most of the day today making a bese64 encoder/decoder in c# and I just finished it now. 5 min l8r, I found out that .NET has a builtin class to encode/decode base64 strings. So many wasted hours =(. But both of our encoders/decoders work =)
Oooo hard luck! I've also seen implementations of this in Java for encoding domain/user:password for proxy servers when you can just use:
encodedString = "Basic " + new sun.misc.BASE64Encoder().encode(strToEncode.getBytes());
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."