Base64 1.9
View/Add Comments
Your comments help everyone, have your say or let us know if this file needs updated or changed
- Version No
- No Information
- Will Run On
- 98/ME/XP/Vista/Linux/Unix/Mac OS X
- Author's Site
- Click Here
- File Size
- 532.03K (Times?)
- Views
- 743
- Downloads
- 21
Base64 is a freeware way of encoding 8-bit characters using only ASCII printable characters similar to UUENCODE. UUENCODE embeds a filename where BASE64 does not. You will see BASE64 used in encoding digital certificates, in encoding user:password string in an Authorization: header for HTTP. The spec is described in RFC 2045.
Don't confuse Base64 with x-www-form-urlencoded which is handled by java.net.URLEncoder.encode/decode or Base64u. Base64 armouring uses only the characters A-Z a-z 0-9 +/=. This makes it suitable for encoding binary data as SQL strings, that will work no matter what the encoding. Unfortunately + / and = all have special meaning in URLs. Base64u gets around this problem. It is a variant on Base64 that uses - _ and * in preference to + / and =, so that it can be used in URLEncoded contexts with or without URLEncoding.
Use base64 like this: // Base64 armouring import com.mindprod.base64.Base64; ... // sample byte array to encode byte[] toSend = { (byte)0xfc, (byte)0x0f, (byte)0xc0}; // create encoder object Base64 base64 = new Base64(); base64.setLineLength( 72 ); // default // encoding a byte[] String send = base64.encoder( toSend ); // decoding a byte[] byte[] reconstituted = base64.decoder( sent ); use Base64u the same way: // Base64u armouring import com.mindprod.base64.Base64u; ... // sample byte array to encode byte[] toSend = { (byte)0xfc, (byte)0x0f, (byte)0xc0}; // create encoder object Base64u base64u = new Base64u(); base64u.setLineLength( 72 ); // default // encoding a byte[] String send = base64u.encoder( toSend ); // decoding a byte[] byte[] reconstituted = base64u.decoder( sent );
Don't confuse Base64 with x-www-form-urlencoded which is handled by java.net.URLEncoder.encode/decode or Base64u. Base64 armouring uses only the characters A-Z a-z 0-9 +/=. This makes it suitable for encoding binary data as SQL strings, that will work no matter what the encoding. Unfortunately + / and = all have special meaning in URLs. Base64u gets around this problem. It is a variant on Base64 that uses - _ and * in preference to + / and =, so that it can be used in URLEncoded contexts with or without URLEncoding.
Use base64 like this: // Base64 armouring import com.mindprod.base64.Base64; ... // sample byte array to encode byte[] toSend = { (byte)0xfc, (byte)0x0f, (byte)0xc0}; // create encoder object Base64 base64 = new Base64(); base64.setLineLength( 72 ); // default // encoding a byte[] String send = base64.encoder( toSend ); // decoding a byte[] byte[] reconstituted = base64.decoder( sent ); use Base64u the same way: // Base64u armouring import com.mindprod.base64.Base64u; ... // sample byte array to encode byte[] toSend = { (byte)0xfc, (byte)0x0f, (byte)0xc0}; // create encoder object Base64u base64u = new Base64u(); base64u.setLineLength( 72 ); // default // encoding a byte[] String send = base64u.encoder( toSend ); // decoding a byte[] byte[] reconstituted = base64u.decoder( sent );
-
Base64 1.9 was submitted by marko, Mar 20 2009 11:06 AM and was last updated Mar 20 2009 11:06 AM.
Base64 1.9 was manually scanned & checked
|
Before approval, we scanned Base64 1.9 and found it to be safe. We also checked the authors site and found no problems there. If you notice any problems with this file, please use the Comments Section. Your opinion matters to us. |
Download Base64 1.9

Link to Base64 1.9 using this image!
Other Freeware Downloads
|
File Name: View Box Player 2.0 In Category: Video Players & Editors |
File Name: Naja 1.3.5 In Category: Download Managers & Accelerators |
File Name: Subtitles Modifier 2.92 In Category: Misc |
File Name: Flash FLV to Video/Audio Converter 3.0 In Category: Video Converters, Encoders & Decoders |
Download Statistics
11 user(s) active in the past 15 minutes
11 guests, 0 Anonymous Users
- MSN/Bing


Help
Add to favorites
View marko's other files


