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
2
votes
1 answer

Mifare Ultralight C 3DES key change

I'm trying to change the 3DES key on an Ultralight C card. I can write the the values in to the address 44-47 as I've found in some topics here. But I cannot authenticate when using it. If I write back the default key it works with no problems. I…
Gaston Pisacco
  • 213
  • 1
  • 3
  • 10
2
votes
2 answers

3DES not producing consistent decryption for multiple iterations over same ciphertext

I've implemented a 3DES (TripleDES) decryption routine in my code and have noticed that it never produces the same cleartext when the supplied ciphertext is the same as the previous iteration. It seems non-deterministic and I'm sure it's something…
joelc
  • 2,687
  • 5
  • 40
  • 60
2
votes
2 answers

3des encryption in iphone

i am fairly new to iOS development and objective c. I am developing an application which will send encrypted data to a server. The server uses 3des with cbc and no padding. I have read most of the related questions in stackoverflow but still unable…
jaytsen
  • 21
  • 2
2
votes
1 answer

Matching Java Triple DES result to C# one

I have the following C# implementation of triple DES byte[] bKey = HexToBytes("C67DDB0CE47D27FAF6F32ECA5C99E8AF"); byte[] bMsg = HexToBytes("ff00"); byte[] iv = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; DESCryptoServiceProvider des = new…
lia ant
  • 408
  • 5
  • 10
2
votes
2 answers

Bad data while decrypting information using Triple DES

I’m working on a mvc application over .Net, to secure my sensitive information such as info in web.config I’ve got two functions that encrypts and decrypts information using Triple DES, however I’m new to this and succeeded to reach by the help of a…
Maven
  • 14,587
  • 42
  • 113
  • 174
2
votes
1 answer

Decrypting a string in ColdFusion encrypted with 3DES in .NET

I'm having trouble decrypting a string that was encrypted in .NET. I saw a couple other solutions on here, mainly Decrypting a string in ColdFusion encrypted with 3DES in C# but I'm still having issues trying to decrypt the .NET encrypted string…
Flavio
  • 33
  • 5
2
votes
0 answers

Decrypting Java 3DES ECB NoPadding encrypted value in PHP

I have a 3des encrypted hex string which I get from a server. When I decrypt it with Java ECB/NoPadding, I get the expected value, but when I try to decrypt it with PHP I am getting a different value. This is the PHP code:
Olantobi
  • 869
  • 1
  • 8
  • 16
1
vote
2 answers

JSON + 3des encrypt dosen't work

i'm trying to pass some JSON data encrypted to my app but seem when i decrypt it my script add some 00 to hexe code making it impossible to be serialized i've tried to pass data uncrypted and crypted and the only difference i found is 00 at the…
oscurodrago
  • 788
  • 1
  • 8
  • 18
1
vote
2 answers

javascript library to decrypt a 3des file

I have a base64 encoded string that contains a 3DES encrypted png file. I need to show this image on the client side provided the right password is given by the client. I have been searching for some crypto library with this functionality but could…
drcelus
  • 479
  • 7
  • 24
1
vote
2 answers

AES vs 3DES for NFC device authentication (Mifare)

I'm in a situation where i have to choose between two types of cards, Mifare Ultralight C and Mifare Plus. Former offers 3DES and the latter, AES. QUite obviously, security is a must and is important in the given circumstance. On what basis do i…
gaara87
  • 2,087
  • 3
  • 21
  • 43
1
vote
3 answers

3DES encryption in iPhone app always produces different result from 3DES encryption in Java

I have to encrypt a string in my iPhone app. The encryption scheme is 3DES/CBC/PKCS5 padding and I have to convert in objective-c this Java code: public class MessageEncrypt { public String encryptString(String message, String seckey) throws…
Pier
  • 65
  • 6
1
vote
2 answers

3DES encryption implementation reporting different output from C# implementation

I have been trying rather unsuccessfully to encrypt a plaintext using 3DES in java by using the BouncyCastle suite. This result is supposed to match that produced by an existing C# implementation because I plan to be decrypting it later. I keep…
1
vote
4 answers

Objective-C Encryption libraries on iPhone?

Are there any ready-to-use encryption libraries for the iPhone? 3DES, AES/Rijndael, whatever. I need to encrypt and decrypt strings. My understanding of Objective-C is that you can use C code inside of Objective-C methods/functions/whatever they're…
whitebreadb
  • 525
  • 2
  • 6
  • 6
1
vote
2 answers

Crypt and send hidden communication between client and server

I have an application winform client written in C# and a Server application written in php. I need to validate an operation that the client does at the server. When the client sends this validation it sends to the server some information like…
Jasper
  • 311
  • 2
  • 5
  • 16
1
vote
0 answers

TripleDES ECB Encryption in Perl that's compatible with PHP mcrypt's implementation

I'm trying to create a package in perl that is equivalent to our pre-existing class in php for handling data encryption. The encryption type seems to be TripleDES in ECB mode however I cannot replicated the resulting cypher text using Crypt::CBC or…
Damian
  • 11
  • 3