• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

3DES

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys,

First, Merry Christmas and Happy New Year for all of you.

Second, I'm working on a cryptool that encrypt and decrypt any type of files based on Triple-DES with CBC mode.
My professor asks me to implement asymmetric algorithm for key exchange along with Triple-DES.
But, I didn't understand what he really means so I wish you will help me with this issue.

Thank you in advance
 
author
Posts: 23899
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

timaa kassem wrote:
My professor asks me to implement asymmetric algorithm for key exchange along with Triple-DES.
But, I didn't understand what he really means so I wish you will help me with this issue.



Triple DES is a symmetric key algorithm. There is no such a thing as Asymmetric 3DES.

Key exchange is the ability for two parties to reach an agreement on a key, in a way where it is impossible to reach the same result, by looking at the information that has been communicated between the parties. A classic algorithm for key exchange is Diffie Hellman.


Anyway, I don't really understand what your professor means either ... perhaps it would be a good idea to ask him/her to clarify?

Henry
 
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Henry Wong wrote:. perhaps it would be a good idea to ask him/her to clarify?



And while you are at it you should ask him why he requires the deprecated Triple-DES and not the favored AES.

P.S. To my mind your wording " to implement asymmetric algorithm for key exchange along with Triple-DES" does not imply that the key exchange would be done using Triple-DES; only that you should implement a key exchange so as to be able to exchange Triple-DES keys. In which case, as Henry says, Diffie Hellman is the standard approach though there are others.
 
timaa kassem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But I wonder if using RSA with 3DES will make it more secure.
I mean that after encrypting file with 3DES key then I'll use RSA public key to encrypt the 3DES key, and use the private key to decrypt 3DES key and decrypt the file.
the question is what I need to save in addition to the encrypted file so I can decrypt file later ?

 
Richard Tookey
Bartender
Posts: 1166
17
Netbeans IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That while using a random symmetric algorithm key is the basis of one standard approach (though I would use AES rather than 3DES) . Section 13.6 of "Practical Cryptography" by Ferguson and Schneier goes into the approach in detail and provides a suggestion for generating the random key to provide good security.
 
What's that smell? Hey, sniff this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic