Questions tagged [tripledes]

Triple DES is a symmetric encryption algorithm that uses the DES cipher three times to encrypt each block of data. The formal name of this algorithm is the Triple Data Encryption Algorithm.

248 questions
143
votes
8 answers

Comparison of DES, Triple DES, AES, blowfish encryption for data

Does anyone have pros and cons together for comparing these encryption algorithms ?
yogsma
  • 9,106
  • 25
  • 86
  • 142
20
votes
1 answer

Difference between DESede and TripleDES for cipher.getInstance()

I am trying to get TripleDES encryption working in Java. From the Wikipedia article under Keying Options, I want to use option 1, where All three keys are independent. From the Cipher docs it says to go to the reference guide here, but it still…
JuiCe
  • 3,884
  • 16
  • 62
  • 114
12
votes
8 answers

TripleDES in Perl/PHP/ColdFusion

Recently a problem arose regarding hooking up an API with a payment processor who were requesting a string to be encrypted to be used as a token, using the TripleDES standard. Our Applications run using ColdFusion, which has an Encrypt tag - that…
Seidr
  • 4,881
  • 3
  • 25
  • 39
8
votes
5 answers

Generate random bytes for TripleDES key C#

I need to generate byte array for TripleDES encryption. I don't want to use .generateKey() because I need to know the bytes in the key to pass them to another application. Thanks for the replies but I forgot to mention one thing: the bytes have to…
hs2d
  • 5,523
  • 18
  • 58
  • 97
8
votes
1 answer

C# TripleDES Provider without an Initialization Vector?

I have a set of encrypted documents encoded with TripleDES coming from a remote system. I need to decode the data in C# and I have no control over the key or encoding algorithm. All I have is the key and the mode (CBC) and the data located in a…
Rick Strahl
  • 15,839
  • 13
  • 83
  • 121
7
votes
1 answer

java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64

Admin please don't mark it as duplicate read my question completely. I am encrypting and decrypting some text but while running in same file with main its running fine but when i call its encrypt and decrypt function from outside. Its giving an…
tarun verma
  • 223
  • 3
  • 4
  • 12
7
votes
1 answer

PHP Encrypt/Decrypt with TripleDes, PKCS7, and ECB

I've got my encryption function working properly however I cannot figure out how to get the decrypt function to give proper output. Here is my encrypt function: function Encrypt($data, $secret) { //Generate a key from a hash $key =…
Brandon Green
  • 361
  • 1
  • 2
  • 8
6
votes
2 answers

PHP Equivalent for Java Triple DES encryption/decryption

Am trying to decrypt a key encrypted by Java Triple DES function using PHP mcrypt function but with no luck. Find below the java code import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import…
Ranju
  • 147
  • 1
  • 4
  • 10
6
votes
4 answers

TripleDES key sizes - .NET vs Wikipedia

According to Wikipedia, TripleDES supports 56, 112, and 168-bit key lengths, but the System.Cryptography.TripleDESCryptoServiceProvider.LegalKeySizes says it only accepts 128 and 192-bit key lengths. The system I'm developing needs to be…
Dai
  • 110,988
  • 21
  • 188
  • 277
6
votes
2 answers

TripleDES. Specified padding mode is not valid for this algorithm

I have a net core app using core1.1 When migrating a cript/decript module from an old .NET4.6 to net core it just wont work First TripleDES no longer (it used to) supports 128bit keys and is fixed with 192bit keys, trying to change it causes…
6
votes
1 answer

How to decode TripleDESCryptoService string in php?

the following code decrypts a string in VB: Public Function Desencriptar(ByVal Input As String) As String Dim IV() As Byte = ASCIIEncoding.ASCII.GetBytes("abcdefgh") Dim EncryptionKey() As Byte =…
Karlo A. López
  • 2,246
  • 2
  • 23
  • 53
5
votes
2 answers

TripleDESCryptoServiceProvider - vulnerable to Denial of Service?

We have a legacy ASP.NET site which uses the encryption methods here: http://www.codekeep.net/snippets/af1cd375-059a-4175-93d7-25eea2c5c660.aspx When we call the following method, the page loads very slowly and eventually Connection Reset is…
frankadelic
  • 19,333
  • 31
  • 105
  • 161
5
votes
1 answer

TripleDES 16 Byte not working

I am trying to migrate some projects from .net framework 4.5 to .net core. The problem arrises when trying to migrate an old crypting/decrypting method. The method is a TripleDES with a key that is a MD5 hash. The MD5 hash always returns 16…
Ndy
  • 316
  • 3
  • 13
5
votes
3 answers

C# Implementation of Retail MAC Calculation (ISOIEC 9797-1 MAC algorithm 3)

I am trying to calculate the MAC using Cryptographic checksums are calculated using ISOIEC 9797-1 MAC algorithm 3 with block cipher DES, zero IV (8 bytes), and 1S09797-1 padding method 2. The MAC length MUST be 8 bytes from Technical Report PM for…
Cadburies
  • 101
  • 1
  • 4
5
votes
0 answers

DUKPT Implementation process using Java and how to convert a hexadecimal string to a DES key (ByteArray)

I am trying to implement the VISA DUKPT algorithm to generate a unique key per transaction from a transaction KSN. I have followed step by step the information provided by the ANS X9.24-1:2009 but the IPEK that I am getting is not the same as the…
aeal
  • 59
  • 1
  • 2
1
2 3
16 17