Results 1 to 5 of 5

Thread: Base64

  1. #1
    Join Date
    Jan 2011
    Posts
    30
    Rep Power
    0

    Default Base64

    where can I download the jar containing BASE64 (sun.misc.Base64)? I've been looking up encrypting and find a lot about it, but nowhere to get it!

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    You don't that is a Sun internal class and as long as you have Sun's (Oracle's now) JVM, and that class still exists (as the internal stuff can change at any time without warning as you are not suppossed to use these classes directly, anyway), then you have that class already. Why don't you, instead, look for another way to do Base64 encoding?

    Such as the class java.util.prefs.Base64? For whatever reason it is not documented in the API docs, but it is not one of the "sun.*" classes (the ones that can be removed at any time) so it should be safe to use, and the source for it is, of course, in the src.zip file in the JDK (it's only about 9K in size so go have a look).

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,762
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by masijade View Post
    Such as the class java.util.prefs.Base64? For whatever reason it is not documented in the API docs, but it is not one of the "sun.*" classes (the ones that can be removed at any time) so it should be safe to use, and the source for it is, of course, in the src.zip file in the JDK (it's only about 9K in size so go have a look).
    It isn't a public class either ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    Join Date
    Jan 2011
    Posts
    30
    Rep Power
    0

    Default

    I don't need to use BASE64, I just need to encrypt and decyrpt. But the only thing I found examples on was BASE64 from sun.misc

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default

    There are encryption classes in java. As as well as nice hashing classes. Look at javax.crypto in the class library!

Similar Threads

  1. Encode Image into Base64 value.
    By onlyabhinav in forum New To Java
    Replies: 3
    Last Post: 01-25-2011, 08:44 AM
  2. Xml Rendering BASE64 break line problem
    By justinazz in forum XML
    Replies: 0
    Last Post: 01-05-2011, 05:46 PM
  3. Problem with Base64 encoding
    By Smirgu in forum Advanced Java
    Replies: 1
    Last Post: 04-15-2010, 12:05 PM
  4. Include Base64 encoded data into XML
    By afolli in forum New To Java
    Replies: 0
    Last Post: 09-11-2008, 11:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •