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
4
votes
4 answers

What is Go's equivalent to Python's crypt.crypt?

I am currently playing around with an example from the book Violent Python. You can see my implementation here I am now trying to implement the same script in Go to compare performance, note I am completely new to Go. Opening the file and…
igniteflow
  • 8,404
  • 10
  • 38
  • 46
4
votes
1 answer

Encrypt and garble audio file using JAVA

I'm currently working on a project to encrypt MP3 audio using JAVA and produce garbled sound from that encrypted MP3 file. So far, I can encrypt the whole MP3 file using DES encryption method. However, this encrypted file is not playable using MP3…
John Adul
  • 41
  • 2
4
votes
2 answers

Use private key in java using DES without generating key automatically

I have to encrypt/decrypt plain text in java using DES with a key. I have got a very good tutorial at IBM which can be found here . The problem with this example is that it is generating the key in the program itself. Now if I encrypt a string(eg…
antnewbee
  • 1,779
  • 4
  • 25
  • 38
4
votes
1 answer

DES encryption of 8 bytes plain text results in 16 bytes array

I am using this code to encrypt a 8 bytes PlainText with a 8 bytes Key but the result is always a 16 bytes array. public static byte[] Encrypt(byte[] PlainText, byte[] key) { MemoryStream ms = new MemoryStream(); DESCryptoServiceProvider…
eledu81
  • 363
  • 3
  • 6
3
votes
1 answer

Decrypting DES encrypted data from Java to .Net

I have a problem decrypting an encrypted string that was encrypted in Java using the DES algorithm. I think my main problem is, that I don't see any salt or IV specifications in the java code. I have following information: This HexSequence is the…
dotKokott
  • 75
  • 2
  • 6
3
votes
4 answers

Bit manipulation of chars in Java or C?

I am a student trying to implement the DES algorithm. I have a choice of 2 languages: C & Java. I did understand the algorithm, but am stuck at the very beginning as to manipulation of the key. Here's the problem. In DES, we have a 64-bit key (8…
krish7919
  • 892
  • 2
  • 13
  • 30
3
votes
2 answers

DES-ECB encryption and decryption

I'm using DES-ECB + base64 encryption in my application. That's the code of the class I called "Crypto" public class Crypto { public static string Decrypt(string encryptedString) { DESCryptoServiceProvider desProvider = new…
Cracker
  • 912
  • 2
  • 14
  • 26
3
votes
2 answers

Code to break DES

I am studying Cryptography and I need to develop Java or C code to break DES(Data Encryption Standard). I am aware of the algorithm used in DES but I don't know how should I go about coding in Java or C. I have heard about the Java Cryptography…
Parth Doshi
  • 4,200
  • 15
  • 79
  • 129
3
votes
2 answers

Updating LDAP encrypted password via JNDI

I need some pointers how to update an encrypted password in an LDAP (OpenLDAP) of a user within an LDAP tree. The passwords in the LDAP server are prefixed with {crypt} which I suppose indicates that it is encrypted (with DES?) I need to write a…
jbx
  • 21,365
  • 18
  • 90
  • 144
3
votes
1 answer

openssl 3des with c++

I want to use the openssl library in C++ to decrypt data. I have the key and IV and the encoded base64 string. I couldn't make it through the documentation, all decryption methods in the header file (openssl/des.h) take 3 keys. I've managed to…
Ammar Hussein
  • 5,534
  • 5
  • 18
  • 37
3
votes
2 answers

DES Encryption and decryption algorithm in swift

I am trying to use DES algorithm for Encryption and decryption in swift But with the code that I have written the encrypted message is changing for every build Here is my code: import UIKit import CommonCrypto public class IAppEncryptionUtitlity:…
sireesha
  • 81
  • 10
3
votes
1 answer

Why did the result of DES Encryption executed in Java different from executed in PHP?

I ran the Trible DES Encryption in Java, with null IV (I have run cipher.getIV() method and indeed it's IV is null) and the same string ran the Triple DES Encryption in PHP with null IV, but I get a different result. Why is that? Java Code: private…
3
votes
2 answers

DES encryption/decryption in client/server using openssl

I need to perform DES encryption in server, send the encryption to the client and decrypt it in the client. Server: const EVP_CIPHER *c = EVP_des_cbc(); EVP_CIPHER_CTX *x = malloc(sizeof(EVP_CIPHER_CTX)); EVP_CIPHER_CTX_init(x); EVP_EncryptInit…
Muzahir Hussain
  • 1,009
  • 2
  • 16
  • 35
3
votes
2 answers

Error in doFinal on multiple DES_CBC_NOPAD encryption

I had a problem with DES encryption on Java Card: I encrypt the data before sending it and then send it as a response to requests coming from some library. If in one applet SELECT sends requests for information, then through 28-30 encryptions on…
Roman Gr.
  • 133
  • 1
  • 9
3
votes
1 answer

Encryption key size DES Java

I want to encrypt a challenge (like 162236fe0bec620827958c8fdf7e4bc7 ) using this key C6864E7696C686 with the DES algorithm. Here is my code : import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import…
Léandre
  • 125
  • 2
  • 13