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
0 answers
OpenSSL TripleDES Decryption issue
Trying to do CBC TripleDES encryption/decryption with OpenSSL in C++. Encryption seems to work ok, but when I try to decrypt I get wrong result as some chaotic set of characters.
Encryption/Decryption
#define DES_BLOCK_SIZE 8
unsigned char*…

Amir
- 13
- 2
1
vote
0 answers
Postgresql decrypting data encrypted on C#
So, I'm trying to decrypt a data on Postgres that was encrypted on C#.
On both sides I'm trying to have the same specification:
Algorithm: DES
Mode: ECB
Padding: PKCS
Key: md5 hashed bytes from string
Well, I couldn't find on Postgres docs…

Andrew Paes
- 1,940
- 1
- 15
- 20
1
vote
1 answer
TripleDES Encryption in java for decryption in C#
I have C# code which decrypts encrypted token passed by another application. I can not change this part.
Now i'm writing an application in java which will encrypt my token, that would be passed to C# application.
I'm not able to match encrypted…

Mahendra Singh
- 60
- 7
1
vote
1 answer
Getting substring of a CryptoJS's TripleDES encrypted string
I've a legacy php code that encrypts with TripleDES method as a part of a bank flow to encrypt purchase operations. This is the code:
/****** 3DES Function ******/
function encrypt_3DES($message, $key){
$l = ceil(strlen($message) / 8) * 8;
…

cr_alberto
- 330
- 1
- 7
- 17
1
vote
1 answer
TRIPLEDES padding is invalid and cannot be removed. c# decrypt
I have a problem when performing a decryption in TRIPLEDES that a provider sends me in HEX: EF69FF79BBD7E8E4EF69FF79BBD7E8E4 with the following key "0123456789ABCDEFFEDCBA9876543210", applying the following method:
public IActionResult…

Diego Diaz
- 15
- 1
- 7
1
vote
2 answers
Decrypting and Copying Contents of Encrypted Text File to MemoryStream
I'm trying to copy the encrypted contents of a text file into a memory stream and then decrypt and copy those contents into a new memory stream. When I reach the code where the copy occurs I get a Invalid Data error on debug.
This is the block of…

Simbiose
- 51
- 1
- 6
1
vote
1 answer
TypeError: Cannot read property 'length' of undefined in cryptoJS
I am trying to encrypt data in cryptoJS in nodeJS but it throws this error:
TypeError: Cannot read property 'length' of undefined
What am I doing wrong?
Here is my code snippet
var crypto1 = require("crypto-js");
var key = new…

hanan
- 532
- 2
- 7
- 23
1
vote
1 answer
Problems with DES3 method in PHP openssl library
I have a web service where I send encrypted data in format "TripleDES, ECB mode, key size 192 and padding Zeros". The Provider show me the example of raw value and expected result:
raw string = IA000001
encrypted string (to send to web service) =…

Tuxman
- 378
- 4
- 13
1
vote
0 answers
TripleDES encryption has different results in C# and JavaScript (CryptoJS)
I'm working on a project that uses an external API that is written in C#. In this API, I need to send some encrypted data while using their key that was provided when I started a session.
My project is built using NodeJS, so to do this encryption I…

Rodolfo Rangel
- 19
- 2
1
vote
1 answer
Encrypt specific column of Room database
I have a table with messages in a chat app and i want to use TripleDes encryption in the column body of the table in my Room Database. What i do now is that whenever i has an array of new messages i loop through them and change the .body field to…

james04
- 1,580
- 2
- 20
- 46
1
vote
1 answer
TripleDESCryptoServiceProvider for C# and Cryptojs gives different results
Why do I get different result in my encryption on TriplesDes using c# and JavaScript cryptojs? Please see my code below.
c#
public static string EncryptTxt()
{
SHA512CryptoServiceProvider sha = new SHA512CryptoServiceProvider();
using (var…

Ibanez1408
- 4,550
- 10
- 59
- 110
1
vote
0 answers
How to replicate same Android encrypt method in React-native?
I'm creating a react-native application, where I need to encrypt with TripleDES using ECB mode and Pkcs7 padding.
I have an Android Java piece of code that do the encrypt algorithm i want to replicate.
In react-native I added "CryptoJS" from…

Alberto Barbieri
- 11
- 1
1
vote
0 answers
TripleDES decryption works, but has some scrambled text in the middle
I'm working on decrypting something I didn't create. The authors encrypted it from a java program, and I'm trying to decrypt it in C#. They have given me the logic behind their encryption (the integer key array, encoding type, and TripleDES), and…

Nicholas Pisca
- 150
- 1
- 10
1
vote
0 answers
Encrypt a string with a key of 56 characters
I have a key that contains 56 characters. And exactly that should be the same value, that is, it can not shorten the key. This key is encrypted in base64 format. If there is a way that the key is shorter, the actual value of the key should not be…

Mohammad Rostami
- 39
- 4
1
vote
1 answer
TripleDES .Net to TripleDES (crypto-js) Javascript
I've spent some time looking at all solutions but something still seems off.. The encrypted string I see in .Net does not match the output I see in Cryto-JS. What could be wrong?
public static void Encrypt()
{
string toEncrypt =…

Ajjo
- 234
- 1
- 11