answersLogoWhite

0

DES is a symmetric cryptographic algorithm, while RSA is an asymmetric (or public key) cryptographic algorithm. Encryption and decryption is done with a single key in DES, while you use separate keys (public and private keys) in RSA. DES uses 56-bit keys for encryption while RSA uses 2600-bits of KEY

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: What are the difference between DES and RSA algorithm?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you RSA algorithm c?

Perform encryption on the following PT using RSA and find the CT p = 3; q = 11; M = 5


Which algorithm was the first to be found suitable for both digital signing and encryption?

RSA


What are the different cryptography algorithms?

There are many different algorithms used in cryptography - RSA, DES and Rabine ciphers are a few that can be used - as well as others that are used to help determine the constants in a system like Euclid's algorithm.


Advantages of RSA algorithm in encryption and decryption of a plain text?

RSA's biggest advantage is that it uses Public Key encryption. This means that your text will be encrypted with someone's Public Key (which everyone knows about). However, only the person it is intended for can read it, by using their private key (which only they know about). Attempting to use the Public Key to decrypt the message would not work. RSA can also be used to "sign" a message, meaning that the recipient can verify that it was sent by the person they think it was sent by.


How do you implement RSA algorithm in java?

This is a perfectly running code..... package javaapplication1; import java.security.*; import java.io.*; import javax.crypto.Cipher; public class NewClass { public static void main(String args[]) { String srci=""; try{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("Please enter any string you want to encrypt"); srci=br.readLine(); } catch(IOException ioe) { System.out.println(ioe.getMessage()); } try { KeyPairGenerator kpg=KeyPairGenerator.getInstance("RSA"); kpg.initialize(512);//initialize key pairs to 512 bits ,you can also take 1024 or 2048 bits KeyPair kp=kpg.genKeyPair(); PublicKey publi=kp.getPublic(); Cipher cipher = Cipher.getInstance("RSA"); cipher.init(Cipher.ENCRYPT_MODE, publi); byte[]src=srci.getBytes();//converting source data into byte array byte[] cipherData = cipher.doFinal(src);//use this method to finally encrypt data String srco=new String(cipherData);//converting byte array into string System.out.println(); System.out.println("Encrypted data is:-"+srco); PrivateKey privatei=kp.getPrivate();//Generating private key Cipher cipheri=Cipher.getInstance("RSA");//Intializing 2nd instance of Cipher class cipheri.init(Cipher.DECRYPT_MODE, privatei);//Setting to decrypt_mode byte[] cipherDat = cipheri.doFinal(cipherData);//Finally decrypting data String decryptdata=new String(cipherDat); System.out.println("Decrypted data:-"+decryptdata); } catch(Exception e) { System.out.println(e.getMessage()); } } } Incase of errors mail me on the below given address.... fs.fabianski@gmail.com -Fabianski Benjamin India