Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use 3DES algorithm  RSS feed

 
ashok
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody please provide following informations:
1)What jar files need I to download and from where?
2)I have seen some of the examples on net. And I've seen that they use 16 characters per key. Are these characters in hexadecimal format?
3)If yes, then is it necessary that these key value must be 16 characters long after conversion?
4)If yes, and I have any key in non-hexadecimal format which has less than 8 character how can I convert them in hexadecimal format so that after conversion it contain 16 characters? It would be very nice If somebody can provide code snippet for such a scenario.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "as ch"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, the Java API for en-/decryption is called JCE. You can find some links about it in the http://faq.javaranch.com/java/SecurityFaq, e.g. a complete code example of how to use DES. Using triple-DES instead means just a change in an algorithm parameter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!