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.

266 questions
3
votes
1 answer

triple des encrypt c# and decrypt in javascript

I have a C# encrypted string that needs to be decrypted in node.js. I am currently using cryptoJS as the decipher. Below is the code to initially encrypt the string in C#: The CryptoAgent constructor builds the algorithm key and initialization…
gparedes09
  • 33
  • 1
  • 7
3
votes
4 answers

3DES Key Components

I need to encrypt/decrypt data using 3DES. the Keys shared with me are in the form of; Component 1 = 11111111111111111111111111111111 Component 2 = 22222222222222222222222222222222 KVC = ABCD1234 I need to create 3DES Key from the above components,…
kasai
  • 145
  • 1
  • 3
  • 10
3
votes
2 answers

Encrypt in VB.NET and Decrypt in PHP

I am trying to write a function in PHP and in VB.NET that uses Triple DES to pass in BOTH directions encrypted data. The problem, is that when I try to decrypt a string encrypted in VB.NET using PHP, I get an error message saying that the block size…
Kraang Prime
  • 9,981
  • 10
  • 58
  • 124
3
votes
1 answer

3DES PHP Encryption Not Decrypting Properly

I'm using the following code to encrypt information that will be passed to an external site on the end of the link URL. Right now it's able to do the encrypting and decrypting itself, but when I go to online Decryptors (online-domain-tools.com,…
CJdriver
  • 458
  • 7
  • 20
3
votes
2 answers

Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding

In order to write an simple nodejs app talking to an server written in java I have to implement the following functionality for nodejs. public class Crypto { Cipher decipher; byte[] salt = { (byte) 0x01, (byte) 0x02, (byte) 0x03, (byte)…
MadMG
  • 138
  • 2
  • 10
3
votes
1 answer

Porting C# TripleDESCryptoServiceProvider encryption to PHP

There's a project written in C# which uses the following code to encrypt/decrypt data to/from database: public string EncryptString(string Text) { byte[] IV = new byte[8] { 1, 2, 3, 4, 5, 6, 7, 8 }; string Key = "abcdef"; byte[] buffer =…
Mehran
  • 15,593
  • 27
  • 122
  • 221
3
votes
2 answers

TripleDES in CFB mode, C# and Crypto++ differs

Here is my problem: I've got a legacy code in C++ (using crypto++ v5.6.1) and I develop a new one in C# (.NET 3.5 using System.Security.Cryptography). I can't change the C++ code, but I need to be able to decrypt data previously encrypted and…
neolutin
  • 31
  • 1
  • 4
3
votes
2 answers

3DES encryption/decryption works in Windows, throws IllegalBlockSizeException in Linux

I recently tried to move a Flex/Java software solution from Windows to Linux (CentOS6 64bit) and I came across this problem. To put it simply, I'm encrypting a short text in Flex/ActionScript (using com.hurlant libraries), algorithm is TripleDES…
ildiavolo
  • 115
  • 9
2
votes
1 answer

What could cause PHP mcrypt to mangle data?

I'm using an mcrypt function to encrypt a block of text using TripleDES. 90% of the time it works as it should and I can decrypt just fine. The other 10% though I just cannot decrypt it at all - as if I have the wrong key or the data is mangled. The…
2
votes
1 answer

Converting C openssl TripleDes encryption to .NET

I have been trying to replicate an encryption process for a 3rd party integration. The 3rd party uses openssl, and have given me there C code they use to perform the process. I have been trying to port this process across to C# for weeks, but I…
Zyth21
  • 39
  • 6
2
votes
1 answer

Decryption using PBEWithMD5AndTripleDES in PHP

I am working on integrating an API to our web-application. On the initial request, the API returns a response that is encrypted using PBEWithMD5AndTripleDES encryption, and then base 64 encoded. I have an encryption password that is provided to me…
golangphp
  • 115
  • 7
2
votes
2 answers

Convert C# TripleDES ECB decrypt/encrypt into PHP with openssl_encrypt/openssl_decrypt

I'm trying to recreate the following C# implementation of TripleDES ECB with PKCS7 padding in PHP using openssl_encrypt and openssl_decrypt. private static string Key = ""; public…
Sobo Ta
  • 21
  • 4
2
votes
1 answer

TripleDES Encryption between PHP vs C#/.NET

I have legacy server uses TripleDES encryption in .NET/C#. Need to decrypt text by using PHP. I wrote PHP code but it's not able to decrypt message generated form C#. C# Code using System; using System.Data; using System.IO; using…
2
votes
1 answer

Decrypting in PHP encrypted in VB

I have to decrypt data in PHP that was encrypted IN VB. When I decrypt numbers I have no problem, but when I decrypt text I only get the first 8 characters and then random. This is the key "a1R@f7D$" This is what I am trying to…
BrianS
  • 57
  • 5
2
votes
1 answer

TripleDES Encryption result different in C# and Node JS

This might be a possible duplicate but I am unable to fix it. Below is my code in C# for tripleDES: using System; using System.Security.Cryptography; using System.IO; using System.Text; class MainClass { public static void Main (string[] args)…
idrisjafer
  • 725
  • 1
  • 14
  • 29
1 2
3
17 18