Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-28-2008, 03:31 PM
Member
 
Join Date: Jun 2008
Location: us
Posts: 37
MarkWilson is on a distinguished road
Send a message via MSN to MarkWilson
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-28-2008, 03:51 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Quote:
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 04:01 PM
Member
 
Join Date: Jun 2008
Location: us
Posts: 37
MarkWilson is on a distinguished road
Send a message via MSN to MarkWilson
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?
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 08-29-2008, 02:40 PM
ProjectKaiser's Avatar
Member
 
Join Date: Aug 2008
Location: Saint-Petersburg, Russia
Posts: 47
ProjectKaiser is on a distinguished road
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 05:00 PM.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 08-29-2008, 03:07 PM
Member
 
Join Date: Jun 2008
Location: us
Posts: 37
MarkWilson is on a distinguished road
Send a message via MSN to MarkWilson
thnakx some thing good
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 09-10-2008, 09:14 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 191
danielstoner is on a distinguished road
Read about and use JCA/JCE.
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 09-10-2008, 03:52 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 299
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encription problem DemoX Advanced Java 9 06-29-2008 03:34 AM


All times are GMT +3. The time now is 09:54 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org