Questions tagged [3des]

In cryptography, Triple DES, or 3DES, is the common name for the Triple Data Encryption Algorithm (TDEA or Triple DEA) block cipher, which applies the Data Encryption Standard (DES) cipher algorithm three times to each data block.

is the common name for the Triple Data Encryption Algorithm (TDEA or Triple DEA) block cipher in cryptography, which applies the Data Encryption Standard (DES) cipher algorithm three times to each data block. This protocol has long been deprecated in favor of stronger encryption algorithms.

357 questions
5
votes
1 answer

What would be "openssl enc -a -e -salt -des3 -pass pass:abc123" equivalent in .NET?

My .Net application need to communicate with Linux based system which is using following command line to encrypt their messages: openssl enc -a -e -salt -des3 -pass pass:abc123 How would be equivalent code to encrypt/decrypt messages in c# look…
Jakub Šturc
  • 35,201
  • 25
  • 90
  • 110
5
votes
1 answer

Image Encryption using 3DES

I am doing encryption and decryption of an image using 3DES. After encrypting an image I am not able to see an encrypted image. Can any one please tell me why is this happening? I am using a jpeg image to encrypt. All this process has been done in…
user2194175
4
votes
1 answer

Decrypting a string in ColdFusion encrypted with 3DES in C#

We are having difficulty decrypting a string in ColdFusion that was previously encrypted with 3DES and C#. Here is the code we used to encrypt the string initially: public static string EncryptTripleDES(string plaintext, string key) { …
Rob Lauer
  • 3,075
  • 1
  • 32
  • 44
4
votes
1 answer

3DES encryption different on iPhone and server

I have the following code for encrypting the request i am sending to my server. The decoding on the server is done by .NET and on the iPhone, I am using the security framework with the following code. - (NSString*)…
Adhamox
  • 397
  • 10
  • 19
4
votes
1 answer

php mcrypt CBC mode encryption/decryption problem

I have a problem with CBC mode when I try to encrypt/decrypt some text using php's mcrypt extension. I've created a class to perform this operations, it works fine with other modes but CBC. The problem is as follow: I use the clear text Even in…
misterjinx
  • 2,606
  • 3
  • 27
  • 29
4
votes
2 answers

Ruby 3DES implementation vs PHP mcrypt, different results

I'm trying to migrate some legacy PHP code to ruby, and I've encountered a problem with some 3DES encryption. This is the PHP implementation using mcrypt: function encrypt_3DES($message, $key){ $bytes = array(0,0,0,0,0,0,0,0); //byte [] IV =…
sjaime
  • 1,480
  • 9
  • 16
4
votes
1 answer

3des encryption in Node.JS returning invalid IV length

I'm quite new to Node and have run into an issue with the encryption object: var des3_key = new Buffer("redacted", "base64"); // copied from key in chilk var des3_iv = new Buffer("alsoredacted", "base64"); // copied from iv in chilk var…
Gavin
  • 2,214
  • 2
  • 18
  • 26
4
votes
3 answers

Triple DES interoperability between .Net and iPhone?

I need to encrypt a string on the iPhone and send it to a .Net for decryption using Triple DES. I am able to encrypt/decrypt on the iPhone and with .Net, but I get different results in both platforms. I use the very same code as the…
G Mauri
  • 43
  • 1
  • 4
4
votes
2 answers

How to use 3DES algorithm on Android?

On the server side, the encyption/decryption of the password field is done in C#. Now, i need to implement same functionality in my android application. So, i followed this tutorial: http://ttux.net/post/3des-java-encrypter-des-java-encryption/ as…
user2326860
  • 1
  • 1
  • 4
  • 12
4
votes
1 answer

PKCS11 deriveKey() and encrypt() returning different results for 3DES

I am working on a key derivation problem using an HSM and PKCS11 and currently I can't understand why I see completely different results depending on whether I use the deriveKey() method as opposed to using the encrypt() method. In both cases I'm…
user1991762
  • 151
  • 1
  • 6
4
votes
4 answers

.NET TripleDESCryptoServiceProvider equivalent in Java

Please, just don't ask me why. I just have this code in .NET that encrypt/decrypt strings of data. I need now to make 'exactly' the same funcionality in java. I have tried several examples for DESede crypt, but none of them gives the same results as…
David Hofmann
  • 5,683
  • 12
  • 50
  • 78
4
votes
1 answer

Manual implementation of 3DES (academic)

For a course I am taking we are manually implementing the 3DES scheme, which is pretty straight-forward on paper (Two key, with EDE encryption). I have chosen Java as the implementation language but have run into an issue with how it handles…
j_l
  • 51
  • 4
3
votes
1 answer

problems with 3DES encryption cut or extends the string

i'm using that code for encrypt a string with 3DES in IOS and i want decrypt it with php but it generate a string longer if i use kCCOptionPKCS7Padding ( or shorter if i don't use it ) when i decrypt it with php it adds more or less chars to de…
oscurodrago
  • 788
  • 1
  • 8
  • 18
3
votes
1 answer

Encrypted data size while using Triple DES

I intend to use TripleDES in one of my project. I was doing some experiments to be comfortable with it. I understand block size of triple DES is 8 bytes so I assume that if give 8 byte of data, I should get 8 bytes of encrypted data. But what I get…
Hemant
  • 19,486
  • 24
  • 91
  • 127
3
votes
1 answer

Java DES/ECB/PKCS5Padding encrypted value are not same

I am trying to encrypt same data in Java using DES/ECB/PKCS5Padding algorithm with hardcoded secret key. I verifed my encrypted value using online tool. If i used secret key with special characters then Java and online tool encrypted value are not…
Imran Hussain
  • 67
  • 1
  • 7
1
2
3
23 24