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.
Questions tagged [tripledes]
266 questions
143
votes
9 answers
Comparison of DES, Triple DES, AES, blowfish encryption for data
Does anyone have pros and cons together for comparing these encryption algorithms ?

yogsma
- 10,142
- 31
- 97
- 154
24
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
- 4,132
- 16
- 68
- 119
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,946
- 3
- 27
- 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
- 6,027
- 24
- 64
- 103
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
- 17,302
- 14
- 89
- 134
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
- 221
- 3
- 5
- 14
7
votes
4 answers
TRIPLE DES encryption/decryption using php
I have this TRIPLE DES ENCRYPTION CODE IN PHP
$encryption_key = "CE51E06875F7D964";
$data='tokenNo=test&securityCode=111' ;
echo $desEncryptedData = encryptText_3des($data, $encryption_key);//outputs 3des encrypted data
function…

Piya
- 1,134
- 4
- 22
- 42
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
- 371
- 1
- 2
- 9
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
- 2
- 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
- 141,631
- 28
- 261
- 374
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…

Gerardo Buenrostro González
- 862
- 1
- 8
- 20
6
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
- 326
- 3
- 15
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,548
- 3
- 29
- 56
6
votes
2 answers
MACTripleDES in PHP
I am trying to get a MAC TripleDES equivalent of the C# MACTripleDES class.
I have tried following mcrypt(), but that is just encoding in TripleDES. I need to get an equivalent MACTripleDES string as the one that is generated in C# to authenticate a…

michaelmmr
- 63
- 4
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
- 20,543
- 37
- 111
- 164