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
0 answers

How to decode a string encoded with OpenSSL DES3 using PHP?

I'm using OpenSSL to encode a string using the following command: openssl enc -des3 -md md5 -pass pass:mypass -out outfile <<< mytext It results with salted encoded strings, i can decode it with following command: openssl enc -d -des3 -md md5 -pass…
Kemal
  • 21
  • 3
2
votes
0 answers

Triple DES Node.js Key/IV length issue

I need to replicate .NET code in Node.js. My hard requirement is that Triple DES encryption needs to performed with 16 byte Key & 16 byte IV. However, I searched all over but couldn't find that combination with any Node.js package. The following…
Junaidi
  • 21
  • 3
2
votes
1 answer

Mifare Ultralight C Authentication on Android

I have some Mifare Ultralight C tags for testing authentication. The first time I read it with the app NXP TagInfo, I could see the following info: (...) Page 04 - Page 27: FULL OF 0s **(empty tag)** Page 28: 00 00 -- -- Page 29: 00 00 -- -- Page…
pedrofialho
  • 147
  • 1
  • 11
2
votes
2 answers

3DES encryption with clear key

I'm trying to write a Cobol program with the following interface: Objective Receives a clear encryption key and a clear text and returns a cyphered text using the 3DES algorithm. Inputs: CLEAR_KEY: A 32-character string of hexadecimal characters to…
2
votes
1 answer

TripleDes CBC Nodejs implementation throuble

i need to replicate in Nodejs the results of the 3DS CBC encrypt in http://tripledes.online-domain-tools.com/. This is my code: const crypto = require('crypto'); const cipher = crypto.createCipher('des-ede3-cbc', key); password =…
2
votes
1 answer

openssl equivalent for TripleDESCryptoServiceProvider

I have some C# code for encrypting and decrypting using TripleDES. I've reduced it to a minimal example for posting. using System; using System.Security; using System.Security.Cryptography; using System.IO; using System.Text; class TDes { …
Cruncher
  • 7,641
  • 1
  • 31
  • 65
2
votes
1 answer

C# DESede Symmetric ECB Encryption (I am so close - slightly differing characters)!

My output that I have to match is from Java DESede using a BouncyCastle Jar from 2005 ... I am very close... Here is my output in Java (which is correct) followed by my output in C# ... if you view in an editor, you will see they ALMOST match,…
Danimal111
  • 1,976
  • 25
  • 31
2
votes
1 answer

Decrypt hex strings using 3DES in Ruby from .NET

I'm working on a Ruby project that is interacting with a webservice that I'm exchanging some encrypted data with. I am having a very hard time decrypting something I get back from the webservice in Ruby, although in the .NET side, it's working fine,…
alkaloids
  • 145
  • 1
  • 9
2
votes
1 answer

Decrypt 3DES DUKPT per the ANSI X9.24 part 1 standard

I have a Magtek uDynamo and am trying to decrypt track 1. I have read the below and understand a little bit but don't know how to actually decrypt the data. The vendor said to use the ANSI test key to decrypt but I can't find anything on that. I…
user1054513
  • 605
  • 3
  • 13
  • 24
2
votes
1 answer

iPhone 3Des Encrypting matching Java and .NET key issue, SecretKeySpec?

I'm trying do some encrypt something using 3des on the iphone that must match the results from java and .NET. the code i have is: + (NSString*) doCipher:(NSString*)plainText:(CCOperation)encryptOrDecrypt { const void *vplainText; size_t…
tony.tc.leung
  • 2,980
  • 3
  • 26
  • 25
2
votes
0 answers

Oracle PL/SQL 3DES encryption replicated to java

i have a legacy oracle functions which use DES3Encrypt and DES3Decrypt function. I need to write the java equivalent version in order to replace the oracle ones keeping compatibiliy with legacy encryption system. These are the oracle…
Alex
  • 1,515
  • 2
  • 22
  • 44
2
votes
2 answers

Encrypt in Sqlserver using 3des and decrypt using java

Is it possible to decrypt a file which is encrypted in sql server using 3DES algorithm? Using java if I encrypt and save to sqlserver, then I am able to decrypt with out issues.. Is there any difference of encryption methods of sqlserver and java?
Raj
  • 537
  • 4
  • 9
  • 18
2
votes
1 answer

How API on POS creating pin block?

We develop software for POS terminals, and use their library of developers POS. The function that generates pin block, ask us the PIN key. And in order to generate PIN key, we need to specify the master key and in order to generate master key, you…
hitman47
  • 237
  • 2
  • 14
2
votes
1 answer

Same return value in php and perl 3DES CBC

I would like to know how to return the same values for a 3DES encription in perl and php. The PHP code is the following: $bytes = array(0,0,0,0,0,0,0,0); $iv = implode(array_map("chr", $bytes)); $ciphertext = mcrypt_encrypt(MCRYPT_3DES,…
2
votes
0 answers

Triple-DES DUKPT CBC PIN variant vs Data variant

Does any know the difference between triple des dukpt decryption algorithm with PIN variant and Data variant? I have done Triple DESK DUKPT PIN variant, which generate session key from KSN and BDK. And then decrypt message using the session key.…
Curly
  • 539
  • 2
  • 7
  • 14