Questions tagged [des]

Data Encryption Standard (DES) is a cryptographic block cipher algorithm.

Data Encryption Standard (DES) is a cryptographic block cipher algorithm.

DES encryption uses a 56 bit key. It is insecure and can be broken in a few hours. It should not be used for new projects.

DES on Wikipedia

648 questions
143
votes
9 answers

Comparison of DES, Triple DES, AES, blowfish encryption for data

Does anyone have pros and cons together for comparing these encryption algorithms ?
yogsma
  • 10,142
  • 31
  • 97
  • 154
42
votes
3 answers

Really simple encryption with C# and SymmetricAlgorithm

I'm looking for a very simple crypt / decrypt method. I will be using always the same static key. I'm aware of the risks of this approach. Currently I'm using the following code but it does not generate the same result after crypting and decripting…
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207
19
votes
2 answers

Converted SecretKey into bytes, how to convert it back to a SecretKey?

I convert the secretkey into bytes with following code SecretKey key = KeyGenerator.getInstance("DES").generateKey(); byte[] bkey=key.getEncoded(); Now how do I get the key from bkey? I tried: SecretKeySpec secretkey = new…
Princeyesuraj
  • 5,228
  • 6
  • 22
  • 27
18
votes
1 answer

How to return byte[] when decrypt using CryptoStream (DESCryptoServiceProvider)

This is a beginner question, Every time I search on the internet, decrypt with DESCryptoServiceProvider function always returning a string. How can we get byte[] for the return? This is the code. Thank you for any help. DESCryptoServiceProvider…
13
votes
7 answers

Java simple encryption

I would like to encrypt a textual (configuration) file stored on disk. Trying to use DES encryption I've had fatal error on client machines, I later found out the algorithm could not handle accented characters (!) I suspect that was because I was…
Ran
11
votes
5 answers

Brute forcing DES with a weak key

I am taking a course on Cryptography and am stuck on an assignment. The instructions are as follows: The plaintext plain6.txt has been encrypted with DES to encrypt6.dat using a 64-bit key given as a string of 8 characters (64 bits of which every…
element
  • 195
  • 1
  • 1
  • 8
11
votes
3 answers

Java PBEWithMD5AndDES

I am using password based encryption. My initial thought was to use AES to encrypt the file which contains passwords. Turns out password based encryption does not support AES. It uses DES. AFAIK des is not secure. Is PBEWithMD5AndDES secure enough…
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
10
votes
3 answers

C# - Serializing/Deserializing a DES encrypted file from a stream

Does anyone have any examples of how to encrypt serialized data to a file and then read it back using DES? I've written some code already that isn't working, but I'd rather see a fresh attempt instead of pursuing my code. EDIT: Sorry, forgot to…
djdd87
  • 67,346
  • 27
  • 156
  • 195
9
votes
3 answers

WebRTC SRTP decryption

I am trying to build an SRTP to RTP stream converter and I am having issues getting the Master Key from the WebRTC peerconnection I am creating. From what I understand, with a DES exchange, the key is exchange via the SDP exchange and is shown in…
Benjamin Trent
  • 7,378
  • 3
  • 31
  • 41
9
votes
7 answers

Is DES or 3DES still being used today?

I've written a DES implementation as an exercice and am now wondering if and where (triple-)DES is used today. I've read about banking cards using it, but I can't find any reliable source for it.
svens
  • 11,438
  • 6
  • 36
  • 55
9
votes
2 answers

DES Send and Receive Modes for DESFire Authentication

I'm trying to authenticate DESFire card with my android application. I use the example in this link to decypher the bytes I got from the card. For that, I ruled out padding in decryption (commented out below), because DESFire documentation points it…
İsmet Alkan
  • 5,361
  • 3
  • 41
  • 64
8
votes
1 answer

How do I play a DES encrypted File using ExoPlayer

I am using ExoPlayer to play Media files(mp4s .h264 encoded) from the SD card of a device. Some of the files are DES encrypted. I can decrypt the files and get back an inputStream, but then I am unsure of how to play this inputStream using…
Adam W
  • 972
  • 9
  • 18
8
votes
2 answers

Why can I encrypt data with one DES key and successfully decrypt with another?

I tried to implement DES algorithm using pyDes and Crypto.Cipher.DES modules. I found a problem that when I encrypt with 82514145 key and then decrypt the cipher with 93505044 I can retrieve the decrypted text. I found 256 keys behaving like this.…
ceasif
  • 345
  • 2
  • 14
7
votes
1 answer

PyCrypto: Generate RSA key protected with DES3 password

I have been able to create a RSA key protected by password with DES3 (well... I think because I'm very new to this encryption world) by using the command: openssl genrsa -out "/tmp/myKey.pem" -passout pass:"f00bar" -des3 2048 Now, I would like to…
Savir
  • 17,568
  • 15
  • 82
  • 136
7
votes
4 answers

BitShifting with BigIntegers in Java

I am implementing DES Encryption in Java with use of BigIntegers. I am left shifting binary keys with Java BigIntegers by doing the BigInteger.leftShift(int n) method. Key of N (Kn) is dependent on the result of the shift of Kn-1. The problem I am…
ThePinkPoo
  • 199
  • 2
  • 4
1
2 3
43 44