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
0
votes
2 answers
Is there any difference between implementation of Triple DES in C# and Java? Java gives error wrong IV size
In our application we are using Triple DES to encrypt and decrypt the data. We have the enc/dec code in C# which uses 24 byte key and 12 byte IV which works fine. Now we want to implement same code in java but when I use 12 byte IV, I get an error…

Tejas
- 391
- 2
- 7
- 19
0
votes
1 answer
3des in php - cannot get good key/string
I need to decode a 3des string in a php and I have no experience in decripting so far...
First step is: get the key and the set of strings to decode - I have that already.
I have this information about algorythm:
type: CBC,
padding - PKCS5,…

baron_bartek
- 1,073
- 2
- 20
- 39
0
votes
2 answers
Will TripleDes alter the Datasize
I have a code that encrpyts and decrypts the data using Triple DES.
Everything works fine with the code.
I have a query with the Triple Des.
Will Triple DES alter the data size while it does the encyption process.
I googled and was totally confused…

siva111
- 13
- 4
0
votes
2 answers
Unable to create CryptoStream to read from - System.NotSupportedException
There is really simple code to decrypt file (triple des encryption):
FileStream fin = new FileStream(FilePath, FileMode.Open, FileAccess.Read);
TripleDES tdes = new TripleDESCryptoServiceProvider();
CryptoStream cs = new…

user1209216
- 7,404
- 12
- 60
- 123
0
votes
2 answers
TripleDES encryption error in java
I'm following this tutorial to use 3DES encryption, and i needed to make some changes in cipher settings, so here's my code:
public class TripleDES {
public static int MAX_KEY_LENGTH = DESedeKeySpec.DES_EDE_KEY_LEN;
private static String…

yahya
- 4,810
- 3
- 41
- 58
0
votes
3 answers
Decrypted data with usage of TripleDESCryptoServiceProvider has additonal characters
I am facing with problem when decrypting data with usage of TripleDESCryptoServiceProvider. The problem is that decrypted value contains beside of original value some additional, strange characters at the end
Per instance if I provide "rastko" to…

Rastko
- 890
- 1
- 17
- 32
0
votes
1 answer
Cannot resolve symbol GetSHA256String
I’m working on a mvc application over .Net, to secure my sensitive information in web.config I’ve got two functions in my model that encrypts and decrypts information using Triple DES, however I’m new to this and succeeded to reach till here by the…

Maven
- 14,587
- 42
- 113
- 174
0
votes
2 answers
16-bit Block Size on TripleDES CFB in C#
I'm writing an application in C# that needs to decrypt some data that was encrypted by some legacy software. The legacy code loops over the unencrypted bytes in chunks of 8 and encrypts them via TripleDES in CBC mode. It then handles the remaining…

iddqd
- 105
- 1
- 10
-1
votes
1 answer
Can I find the key in Triple DES encryption algorithm if I have IV, encryption data and the resulting value?
This is not meant for any kind of hacking, I am just trying my hands on Triple DES encryption technique in .NET. I have some test data with me. I have to get the result with the given data. I do also have the result. But the value never matches. I…

Ankur-m
- 528
- 6
- 14
-1
votes
1 answer
Python - Decrypt Tripple Des AES - ECB
I need to perform a decryption using TripleDes, I'm using Python - Crypto.Cipher import AES
Goodnight,
I'm trying to decrypt a 3Des key, but without success.
I'm doing it like this:
m = md5(key.encode('ISO-8859-1')).digest()
cipher = AES.new(m,…
-1
votes
1 answer
3DES EDE ECB Enryption - the c++ output differ from JAVA default mode output
I am using 3des-ede-ebc encryption from openssl library..
the result cipher is encoded using base64.
But the result cipher of encryption (both base564 and Hex encode) is different than the result from any online encryption site for same.
Eg: for…

GOPU SURESH
- 1
- 3
-1
votes
1 answer
TripleDES algorithm in C#
I'm currently working on TripleDES encryption in C# for which I've received the code sample from JAVA.
I have created an encryption function in C# with below code sample :
Inputs :
key/ekay =…

Andy V
- 39
- 1
- 6
-1
votes
1 answer
How can i edit my code so that the exceptions while decryption can end
Exception Occuring:
System.Security.Cryptography.CryptographicException' occurred in
mscorlib.dll Additional details:: Length of the data to decrypt is
invalid.
public string Encrypt(string toEncrypt, bool useHashing)
{
…
-1
votes
1 answer
Decrypting 3des from hex data with a hex key
I am trying to use the mycrypt php library to decrypt the following:
Key: aaaaaaaabbbbbbbbccccccccdddddddd
Data: b5057bbc04b842a96144a0f617f2820e
Expected Result: Test123123
The data is encrypted with 3DES with the mode ECB. The code I'm…

Tony
- 2,890
- 1
- 24
- 35
-1
votes
3 answers
Triple DES without using forward or backward slashes
Is it possible to modify triple DES so as not to include forward and backward slashes when encrypting/decrypting?
I had this actionlink on mvc which works without encryption however when I tried to encrypt the id passed to the controller method, the…

rikket
- 2,357
- 7
- 46
- 74