Results 1 to 7 of 7
  1. #1
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Default Encription / Decription

    Hi ppl,

    can u help me on Enc /Dec technique.

    hei actually i have one alg in java which is encript the value

    but if i want to decript that , den how i can ,

    i m sorry i dont have more knowledge in this security area.

    so plz help me with same,

    Thankx in Advance

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default

    i have one alg in java which is encript the value
    The decript code will have to match the encript code. I don't think you can encript something with one algorithm and decript it with another and end up with the original object.

    There have been other posts on this topic. Use search to find them.

  3. #3
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Default

    actually this i have one md5 tech to enc the value

    but we cant dec md5 value . as per my know.

    so how i can?

  4. #4
    Join Date
    Aug 2008
    Location
    Saint-Petersburg, Russia
    Posts
    66
    Rep Power
    0

    Default

    Indeed md5 is almost not reversible. It is very hard to restore original bytes you have md5 from.

    Better use javax.crypto facility

    Encrypting a File or Stream with DES (Java Developers Almanac Example)
    Last edited by ProjectKaiser; 08-29-2008 at 03:00 PM.

  5. #5
    MarkWilson is offline Member
    Join Date
    Jun 2008
    Location
    us
    Posts
    47
    Rep Power
    0

    Default

    thnakx some thing good

  6. #6
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    7

    Default

    Read about and use JCA/JCE.
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  7. #7
    Niveditha's Avatar
    Niveditha is offline Senior Member
    Join Date
    May 2008
    Posts
    307
    Rep Power
    7

    Default

    Hi,

    There are many links that give you java code examples for both encrypting and decrypting. I would add some more links to the one already provided.

    1. Java Code to Encrypt and Decrypt a Sample Client Random
    2. Signing, encrypting, and decrypting Atom
    To finish sooner, take your own time....
    Nivedithaaaa

Similar Threads

  1. Encription problem
    By DemoX in forum Advanced Java
    Replies: 9
    Last Post: 06-29-2008, 01:34 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
  •