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
2
votes
0 answers
Triple DES Encrytion in GWT and Decryption in Javascript
I need to do triple DES encryption in GWT client file and need to do decryption of encrypted string in javascript. I have used TripleDesCipher in GWT but while doing decryption in javascript using crypto-js, I am getting blank string. Following is…

Janmejaysinh Gohil
- 148
- 1
- 9
2
votes
0 answers
encryption with tripleDes in meteor
I have a code in Asp.net that encrypts a string with TripleDES algorithm in EBC mode and other settings. and uses a key which is encrypted using Base64. I have to write this code in meteor (javascript). Therefore I used the CryptoJs library but the…

goli
- 21
- 2
2
votes
1 answer
Encryption algorithms in pseudo code
I have been reading up on encryption algorithms and am trying to implement them with my research without using any libraries. However, I am finding it a bit difficult to understand how they work.
The algorithms I have looking at in particular are,…

Jackie
- 427
- 1
- 9
- 19
2
votes
1 answer
encrypt in .net core with TripleDES
public static string Encrypt(string toEncrypt, string secretKey)
{
byte[] keyArray;
byte[] toEncryptArray = UTF8Encoding.UTF8.GetBytes(toEncrypt);
var md5Serv = System.Security.Cryptography.MD5.Create();
keyArray…

Pooria Monfared
- 21
- 1
- 5
2
votes
1 answer
PHP 3DES Encryption
This is my code
$key = pack('H*', "11223344556677881122334455667788");
$plaintext = pack('H*', "0000000000000000");
$ciphertext = mcrypt_encrypt(MCRYPT_3DES, $key, $plaintext, MCRYPT_MODE_ECB);
echo bin2hex($ciphertext);
but the result I got…

Thanh
- 65
- 2
- 10
2
votes
1 answer
TripleDES in CFB mode using Crypto++ and .NET
I am trying to get same result using TripleDES using C++ app which has Crypto++ and .NET app which uses TripleDESCryptoServiceProvider. I tried setting Key and IV the same but I am getting different results.
This question was already asked here,…

Farukh
- 2,173
- 2
- 23
- 38
2
votes
1 answer
javascript triple des encryption value and java triple des encryption values not matched why ?
hi guys i have java code which produce triple des encryption code for me now i am trying to use it on javascript using crypto-js but both codes provides different keys I dont know why and how to get the same key here is my code
public String…

Nadeem Mohammed
- 559
- 1
- 6
- 14
2
votes
1 answer
using TripleDes and MD5 in swift
I have an algorithm in java code for using tripleDes and MD5. there is my java code :
private String _encrypt(String message, String secretKey) throws Exception {
MessageDigest md = MessageDigest.getInstance("MD5");
byte[]…

ava
- 1,148
- 5
- 15
- 44
2
votes
2 answers
Encryption in C# Decryption in JS (CryptoJS)
I do not get the same result on CryptoJS. May you please check what is wrong?
Here is my expected input/outputs:
Encrypted String: 723024D59CF7801A295F81B9D5BB616E
Decrypted String: stackoverflow
Here are my Decryption/Encryption methods in C# .…

bman
- 3,740
- 9
- 34
- 40
2
votes
1 answer
3DES : Receive Different Byte Array of encoding String from Registry
Tool : Visual Studio 2012. Windows 7 64bit.
Keywords : C#,registry,Triple DES Encryption Decryption.
I have created one demo program to read and write (Encrypted string) to registry.
Concept behind this program is : I want to Encrypt and Decrypt…

Jaimesh
- 841
- 4
- 25
- 41
2
votes
1 answer
MYSQL TripleDES algorithm generates proprietary junk (no cipher understands it)
I am trying to use MYSQL methods for encrypting a string using key with the value 'symmetric_encryption.php' (just for example). However output is a garbage that no other cipher could understand. I tried everything but it produces the same garbage…

Stan Sokolov
- 2,140
- 1
- 22
- 23
2
votes
0 answers
DESede decryption in java a block encrypted in C# using key generated by CryptDeriveKey method
I have a data block, which can be decrypted in C# with this code:
PasswordDeriveBytes pdb = new PasswordDeriveBytes(password, salt);
byte[] key = pdb.CryptDeriveKey("TripleDES", "SHA1", 192, iv);
var csp = new…

Alexey
- 31
- 2
2
votes
1 answer
TripleDESCryptoServiceProvider Specified key is not a valid size for this algorithm at 128 bytes?
I'm trying to update my encrypt decrypt function from DES to TripleDES.
However, when I try to increase my key and iv byte array size from 8 to 128:
byte[] key = new byte[128], iv = new byte[128];
TripleDESCryptoServiceProvider des = new…

reaper_unique
- 2,916
- 3
- 28
- 48
2
votes
1 answer
C# Specified key is a known weak key for 'TripleDES' and cannot be used
I have a authentication process written in Java which encrypts a string into MD5 and generates a string and takes only the first 8 digits of that string.
In this example that generated string is "89a5c474".
Afterwards I have this following piece of…

pat-man1991
- 31
- 4
2
votes
1 answer
Bouncy Castle issue and Triple DES
Hi I have a client using Triple DES. I know I know if AES I would not have a problem it is a older solution integration. I have code below that Takes in a file and writes to another. On the decrypt method I don't understand the 2nd parameter for…

ogottwald
- 113
- 1
- 3
- 15