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
1
vote
1 answer
AES Encryption in Java to match with C# Output
I am trying to do AES Encryption using JAVA, I have made multiple attempts, tried a lot of codes and did many changes to finally reach to a place where my encrypted text matches with the encrypted text generated using C# code BUT PARTIALLY. The last…

Knight Rider
- 186
- 10
1
vote
1 answer
OpenSSL [des-ede3-cbc] Decryption php
i had to receive some data encrypted with 3DES with shared keys.
I'm using php7 and openssl_decrypt function, but I'm not able to recreate the result of the example of the documentation sent to me.
The OpenSSL command that create the data sent to me…

seb
- 113
- 2
- 4
- 13
1
vote
1 answer
AES using mathematical notation
I was wondering if AES can be represented using mathematical notation, if so, how?
During research I came across mathematical notation for triple DES but wasn't able to find one for AES.
Encryption
ciphertext =…

Jackie
- 427
- 1
- 9
- 19
1
vote
0 answers
How to read an encrypted Chrome cookie from local file
I'm trying to read the local cookies file for Google Chrome, which is located at C:\Users\usr\AppData\Local\Google\Chrome\User Data\Default\Cookies and can be read using sqlite3 in Python. I can then get the encrypted value in Python using sqlite3…

TheStrangeQuark
- 2,257
- 5
- 31
- 58
1
vote
0 answers
MD5 and Triple Des Encryption in PHP with KEY, and IV
I have given a task to integrate our company system to external system via API. When I read about the API, it stated that the data should be encrypted using MD5 and Triple Des Encryption, so I made some research about how to do it.
// Here's the…
user9292554
1
vote
2 answers
TripleDESCryptoServiceProvider.Blocksize different from PHP's mcrypt_get_key_size
why does (C#)
System.Security.Cryptography.TripleDESCryptoServiceProvider.BlockSize
and (PHP)
mcrypt_get_block_size(MCRYPT_TIPRLEDES, MCRYPT_MODE_ECB);
returns a different result?

xar
- 1,429
- 2
- 17
- 29
1
vote
1 answer
Java TripleDES PKCS5Padding decryption to C# - bad data / padding error
I'm trying to write the C# equivalent for the following Java code:
protected static final String DES_ECB_PKCS5PADDING = "DESede/ECB/PKCS5Padding";
public static String decryptValueDirect(String value, String key)
throws…

bruce neiman
- 25
- 8
1
vote
1 answer
Triple DES Algorithm in Android JAVA
I am new to Android-Java. I have below function in C# for Encryption (Triple DES)
public string Encrypt(string data)
{
try
{
if (!string.IsNullOrEmpty(data))
{
//byte[] keyArray;
…

Robin Purbia
- 227
- 2
- 17
1
vote
2 answers
javax.crypto.BadPaddingException: Given final block not properly padded
I'm using Triple DES for my encryption/decryption purpose but somehow it gives me above exception and I tried other approaches as well mentioned in the related answers, but I'm stuck. I'm new to cryptography and corresponding java libs.
private…

Deepesh
- 41
- 1
- 2
- 9
1
vote
1 answer
Crypto JS: TripleDES not encrypting properly
When using crypto js tripleDES to encrypt, I noticed that all strings to encrypt which are of small length e.g "01", "111", "20" encrypt properly but with long strings like "5000021234567890000", the output isn't correct or is not the value I am…

ifeoluwa king
- 531
- 1
- 8
- 19
1
vote
2 answers
I am getting BadPaddingException in my decrypt method
I am using the below (snippets) code to encrypt users' private data to store in a database, then decrypt so they can view it.
Cipher cipher = Cipher.getInstance("DESede");
byte[] bytes = cipher.doFinal(value.getBytes());
String encrypted = new…
user7440674
1
vote
1 answer
TripleDES TransformFinalBlock occasionally giving 'Bad Data. ' error
I have the following code:
public static string PerformEncryption(string text, string uniqueKey, bool encrypt = false)
{
byte[] textBytes = encrypt ? Encoding.UTF8.GetBytes(text) : Convert.FromBase64String(text);
byte[] resultArray;
var…

AdrianSean
- 397
- 1
- 5
- 21
1
vote
0 answers
TripleDES encrypting with vb.net and decrypting with java
I'm creating an interface for two applications that will communicate using encrypted text in .txt files. vb.net app will encrypt and java will decrypt.
vb code
Dim nget As String = System.IO.File.ReadAllText(sInputFilename)
Dim…

user1620938
- 11
- 2
1
vote
1 answer
Python TripleDES decryption
I'm trying to decrypt a string in python encrypted using 3DES. It is encrypted by VB.net by my formal mate. I have no idea what is going on. The partial code in VB.net is
Private key() As Byte = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,…

edwin
- 1,152
- 1
- 13
- 27
1
vote
1 answer
TripleDES encryption in OpenSSL and decryption using C#
I've encrypted a file that contains "Hola mundo" in Openssl with the command below. Then, I want to decrypt this file using C#.
enc -des-ede -nosalt -in ArchivoNormal.txt -pass file:MiCertificado.cer -out ArchivoEncryptadoTDEOpenSSL.txt
1) In order…

EduardoUstarez
- 603
- 11
- 22