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

How do I use 3DES decryption in C# in OFB mode?

I need to decrypt a message that was encrypted using 3DES in OFB mode. I have an encrypted message. I have a key. I have an IV. I'm on a .Net platform The encrypted message is 24 chars long in base64. The key is 24 chars long in base64. and the IV…
crystal
  • 31
  • 3
3
votes
0 answers

Decrypting 3DES ECB with MD5 key on iOS

I am trying to decrypt data from a .NET server in an iOS application. The data has been encrypted with 3DES in ECB mode. I was able to successfully decrypt this same data on Android, but on IOS I just keep getting garbage output. I've compared…
ajh158
  • 1,477
  • 1
  • 13
  • 32
3
votes
3 answers

NodeJS 3DES ECB encryption does not equal C# encryption

I'm trying to convert the C# code to encrypt text using 3DES ECB (You can copy and paste it on https://dotnetfiddle.net/ to run it) using System; using System.Configuration; using System.Security.Cryptography; using System.Text; public class…
sendy halim
  • 405
  • 4
  • 11
3
votes
2 answers

Decrypt a data by 3DES-128 bits CBC Mode (padding zero)) using java

In the process of decrypting an encrypted data, i am having a little challenge with it. I will be so glad if anyone can help putting me through. Although, i have already studied the algorithm in carrying out this operation, since i am to get my data…
user6849758
3
votes
1 answer

Encrypt String with 3DES usingDelphi 10.1 Berlin

I need to encrypt an 10-byte string in Delphi using 3DES. It must get the same result than this PHP code: function encrypt_3DES($message, $key){ $bytes = array(0,0,0,0,0,0,0,0); $iv = implode(array_map("chr", $bytes)); $ciphertext =…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
3
votes
0 answers

Using CBC DES encryption in java card

I am trying to encrypt data using Cipher class . I want to specify the initial vector so I use the following functions : try { cipherCBC = Cipher.getInstance(Cipher.ALG_DES_CBC_NOPAD, false); cipherCBC.init(k,…
Sara Sara
  • 299
  • 1
  • 6
  • 14
3
votes
1 answer

iOS 3DES with ECB return half correct data

Got a problem with crypting password with 3DES + ECB algo. Here is the code I using: class func encryptPassword(pass: String) -> String { let keyString = "123456789012345678901234" let keyData: NSData! = (keyString as…
alexey.metelkin
  • 1,309
  • 1
  • 11
  • 20
3
votes
4 answers

3DES Key Components

I need to encrypt/decrypt data using 3DES. the Keys shared with me are in the form of; Component 1 = 11111111111111111111111111111111 Component 2 = 22222222222222222222222222222222 KVC = ABCD1234 I need to create 3DES Key from the above components,…
kasai
  • 145
  • 1
  • 3
  • 10
3
votes
1 answer

3DES PHP Encryption Not Decrypting Properly

I'm using the following code to encrypt information that will be passed to an external site on the end of the link URL. Right now it's able to do the encrypting and decrypting itself, but when I go to online Decryptors (online-domain-tools.com,…
CJdriver
  • 458
  • 7
  • 20
3
votes
1 answer

3DES Encryption / Decryption using ECB in iOS

i'm making an application , in which i have to encrypt a string using 3DES encryption in ECB mode. i m using "mykey" as a key. + (NSData *)tripleDesEncryptData:(NSData *)inputData key:(NSData *)keyData …
3
votes
2 answers

How to use three keys with triple des(3des) in Java

I found a link in stackoverflow here use-3des-encryption-decryption-in-java,but in fact the method uses only two parameter:HG58YZ3CR9" and the "IvParameterSpec iv = new IvParameterSpec(new byte[8]);" But the most strong option of triple des could…
Marshal Chen
  • 1,985
  • 4
  • 24
  • 35
3
votes
1 answer

How to encrypt, decrypt data using DUKPT and 3DES algorithm in iphone for a card reader application?

I have reffered this code and successfuly created IPEK and PEK for differant TKSN and Now how do I encrypt this keys to my card reader device and how do decrypt the card information using those keys. In fact I'm not familiar with the DUKPT…
Dolo
  • 966
  • 14
  • 28
3
votes
1 answer

Different 3DES encryption result between objective-c and C#

I am developing a ios app, using C# in server side. I need to use 3DES encryption to encrypt the password. In both code: key = "FC13573F412EAA1BA8E34791C06504C1429C5BCEB94DB111"; plainText = "123456"; // (or CryptString = "123456") now C# result…
worldask
  • 1,837
  • 3
  • 22
  • 37
3
votes
1 answer

Porting C# CryptoSys-assisted 3DES encryption to Objective-C CommonCrypto issues

I am currently working on an iPhone app that is a port of a subset of .NET C# functionality. I must log into a server using a 3DES encrypted password (yes, I know that is not an optimal standard, but please bear with me). So far, however, no joy. I…
Rob
  • 33
  • 3
1 2
3
23 24