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
2
votes
1 answer

Triple DES decryption returns wrong first 16 bytes of when decrypted again

I have a problem with decryption when I try to decrypt the same byte slice again. Example of code for clarification: package main import ( "fmt" "crypto/cipher" "crypto/des" ) const ( // tripleKey is TripleDES key string (3x8…
Yury
  • 23
  • 4
2
votes
2 answers

Where is the IV in Triple DES?

I'm encrypt data using triple DES. It works fine, but I have a question. Where can I see the initialization vector (IV)? It's 3des encyption with BASE64Decoder. import java.io.IOException; import java.io.UnsupportedEncodingException; import…
2
votes
0 answers

TripleDes Perl<->Java (CCBill implementation)

I ran into a problem when trying to integrate with a payment processor (CCBill) who is requesting a string to be encrypted to be used as a token, using the TripleDES standard. My application is in Java, and the result I am getting back is not what…
Lucia Ivascu
  • 130
  • 1
  • 5
2
votes
1 answer

sha-512 returning different value for same string

I am new to java security so it may sound stupid to you guys. I am using triple-des algorithm for encryption decryption in that i am using hash value as keys. I am using sha-512 for hashing i have heard that two same strings hash will be same but i…
tarun verma
  • 221
  • 3
  • 5
  • 14
2
votes
1 answer

Difference between TripleDES class and TripleDESCryptoServiceProvider class

I am trying to understand simple codes of TripleDES encryption to see how it works. And I have seen many codes on google. Some of them used TripleDES class and some of them used TripleDESCryptoServiceProvider class. All I know, the second one is…
Giliweed
  • 4,997
  • 8
  • 26
  • 35
2
votes
1 answer

PHP code to encrypt using 3DES algorithm using CBC mode and a secretkey and IV spec key

i am try to encrypt following data using the 3des(CBC) using a secretkey and IV spec key in php but i am not getting the same output which i get on this online tool (http://symmetric-ciphers.online-domain-tools.com/) //input $data =…
user3546274
  • 21
  • 1
  • 2
2
votes
1 answer

How does PHP handle 32 byte keys for tripledes encryption

Apologies all - newbie at encryption - been googling for days and finally asking outright. I need to use PHP to encrypt and decrypt data that is readable by a Java TripleDES "DESede/ECB/NoPadding" function. In Java there is a double-length 32…
Dash Weh
  • 198
  • 1
  • 5
2
votes
3 answers

TripleDES implementation in Javascript different comparing with C#

I need to replicate the following C# method to encrypt some text from Javascript. Currently I am using Crypto JS, but the output from JS is not equals to the C# output. const string EncryptKey = "hello"; private static String…
Jonathan Naguin
  • 14,526
  • 6
  • 46
  • 75
2
votes
1 answer

How to implement Triple DES crypto in C using OpenSSL library

I'm trying to implement Triple DES encryption in C using OpenSSL library but I am not such professional in cryptography. I've found a useful sample code here for DES ECB crypto but I could not find an example code on how to implement 3DES and most…
anonim
  • 2,494
  • 6
  • 30
  • 40
2
votes
2 answers

C# byte array to string

I've read a few articles on doing this and I think there is a variable I'm not considering here. I'm going through someone else's code, where they have implemented triple-des encryption. They do not have the key and iv stored somewhere as a string.…
John Agan
  • 333
  • 4
  • 12
2
votes
2 answers

3DES not producing consistent decryption for multiple iterations over same ciphertext

I've implemented a 3DES (TripleDES) decryption routine in my code and have noticed that it never produces the same cleartext when the supplied ciphertext is the same as the previous iteration. It seems non-deterministic and I'm sure it's something…
joelc
  • 2,687
  • 5
  • 40
  • 60
2
votes
2 answers

tripledes encryption and decryption using openpgp gem in ruby

I need to do the triple DES encryption and decryption in ruby. Whether I can use openpgp gem Or any other dedicated gem is there for doing the triple DES encryption /decryption. Please suggest me . Thanks
sat
  • 14,589
  • 7
  • 46
  • 65
2
votes
2 answers

Bad data while decrypting information using Triple DES

I’m working on a mvc application over .Net, to secure my sensitive information such as info in web.config I’ve got two functions that encrypts and decrypts information using Triple DES, however I’m new to this and succeeded to reach by the help of a…
Maven
  • 14,587
  • 42
  • 113
  • 174
1
vote
1 answer

TripleDES Decryption truncating last character

I have a .NET class that implements TripleDES encryption and decryption. The code is too much to post here. However, the problem is that while encryption is OK, decryption is inconsistent depending on the length of the original plaintext. I know…
jordan koskei
  • 2,749
  • 1
  • 15
  • 12
1
vote
1 answer

C# Triple DES encryption to decrypt Informix ENCRYPT_TDES function

I have data from an Informix database that has a column with data encrypted using the Informix function ENCRYPT_TDES. The data was imported into SQL SERVER 2008 and I no longer have access to a running instance of Informix. I need to write a C# or…
Josh Danko
  • 123
  • 9