answersLogoWhite

0


Best Answer

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
This answer is:
User Avatar

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

Related questions

What is Difference between DES and RSA algorithm?

1. RSA comes under Asymmetric and DES comes under Symmetric 2. RSA is more secure than DES.


Different types Library of computer security related algorithm?

HMAC RSA SHA AES DES


What is the difference between AES and RSA?

AES 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 AES, while you use separate keys (public and private keys) in RSA. The strength of a 128-bit AES key is roughly equivalent to 2600-bits RSA key.


How do you RSA algorithm c?

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


What is fullform of RSA token?

There are number of encryption techniques one such technique is RSA. RSA stands for rivest shamir algorithm.


What is the best public-key cryptography algorithm and why?

RSA (Rivest, Shamir, and Adelman) is the best public key algorithm.


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.


Which encryption algorithm is commonly used as a public key cipher?

Type your answer here... RSA


What do the letters RSA stand for?

RSA is a data-encryption technology utilizing prime factorization. Its name is derived from the developers who created it: Rivest, Shamir and Adelman.


What is difference between aes and rijndael?

in aes block size fixed i.e.128 bits where as in rsa it is not fixed


What is the expansion of rsa in cryptography?

In cryptography, RSA (which stands for Rivest, Shamir and Adleman who first publicly described it) is an algorithm for public-key cryptography.[1] It is the first algorithm known to be suitable for signing as well as encryption, and was one of the first great advances in public key cryptography. RSA is widely used in electronic commerce protocols, and is believed to be secure given sufficiently long keys and the use of up-to-date implementations.