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
0
votes
2 answers

IV too long in PHP mcrypt_generic_init

I am working on a project where all the data from the web services is being encrypted using Triple DES Encryption. In my specific case, I am receiving a query string from a URL that has been encrypted. The web service provider has given me two…
0
votes
1 answer

TripleDes encrypted/decrypted string has question marks

There's an old web application developed in vb.net and 2.0 Framework. The application reads an encrypted information of sql server name which are stored in a Windows registry. When it comes to this line of code ConnectionStr =…
jambis
  • 122
  • 2
  • 10
0
votes
1 answer

Triple DES initialization vector

I have a working code to generate encrypt data using PHP: $cipher_alg = MCRYPT_TRIPLEDES; $iv = mcrypt_create_iv(mcrypt_get_iv_size($cipher_alg,MCRYPT_MODE_ECB), MCRYPT_RAND); $encrypted_string = mcrypt_encrypt($cipher_alg, $pKey, $string,…
Guilherme Torres Castro
  • 15,135
  • 7
  • 59
  • 96
0
votes
1 answer

Why does this php statement not work? Cant send data using url

_id, 'APIKey' => $api_key, …
Ajeesh
  • 5,650
  • 8
  • 30
  • 52
0
votes
2 answers

Why this line doesnt work in java?

return Base64.encodeBase64String(cipherText); im getting an error in this line.It suggest me to make a class in base64,but is there any standard class for Base64?Im using this to encrypt. import java.net.URLEncoder; import…
Ajeesh
  • 5,650
  • 8
  • 30
  • 52
0
votes
1 answer

TripleDES returning the "equal" symbol in encrypted data

I am trying to Encrypt / Decrypt data to use in the Querystring. Most of the time, the encrypted data ends with the "equal" symbol '=' The following are some examples of encrypted string 1 - LS07D43u6Hs= 2 - oHPgq6hz0A0= 3 - 4ugeuARQvXw= …
TTCG
  • 8,805
  • 31
  • 93
  • 141
0
votes
1 answer

How to decrypt Triple Des CryptoJS values in Java class

I was asked to encrypt some text from client side ( web ) before sending it to server side ( java ) So i try to use CryptoJS library for client side. I encrypt it like this : var key = "aaaaaaaaaaaaaaaaaaaaaaaa"; var value = "KF169841"; …
mameo
  • 639
  • 8
  • 25
0
votes
1 answer

SHA1 outputs in Java and Objective-c vary within a loop

i happen to be getting varying outputs when i call the digest method (in java) and CC_SHA1 (in Objective-c multiple times. Please note that when the loop isn't used, i'm getting matching outputs. The following are the implementations i'm currently…
Leena
  • 59
  • 7
0
votes
0 answers

How to Wrap Symmetric Key and IV in C#

Is there an existing .NET API for performing a Triple DES Key Wrap ? Documentation here. I have generated 192 bit symmetric key + 64 bit initialization vector (IV) for 256 bit total. Currently, my code only encrypts the symmetric key as follows:…
AdventurGurl
  • 141
  • 1
  • 14
0
votes
0 answers

Encryption exception: you have not installed the Java Cryptography Extension (JCE)

error: Encryption exception: you have not installed the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files in this Java Virtual Machine I have read that to resolve this, one must download the local_policy,…
user742102
  • 1,335
  • 8
  • 32
  • 51
0
votes
1 answer

Test vectors for ECB, CBC, CFB and OFB modes of Triple DES

Where I can get test vectors for CBC, CFB and OFB modes of Triple DES? Help me please.
idk.the.name
  • 106
  • 3
  • 7
0
votes
1 answer

How do I handle keys when trying to use TripleDES to encrypt transactions between GWT client and perl server?

I have a GWT client talking to a perl server via JSON over HTTP. It works great, but there are some privacy issues and I need to encrypt the transactions. After doing a bit a research it seems as though the easiest/best supported option is to user…
James B
  • 51
  • 4
0
votes
3 answers

With Triple des, can you decrypt with just a public key?

I know with RSA there are a few ways you can encrypt and decrypt data, meaning you can encrypt with either the public or private key (or both), and you can also decrypt with just a private or public key, or both. With Triple Des, do you need both…
loyalflow
  • 14,275
  • 27
  • 107
  • 168
0
votes
2 answers

Using "CryptoJS" library in a Titanium mobile project to decrypt a text message [Triple DES]

I have an encrypted text message and I want to decrypt it using "crypto-js" library posted on the link: http://code.google.com/p/crypto-js/ I want to decrypt using TRIPLE DES. I downloaded the library and placed "tripledes.js" under "lib" folder in…
Anthony
  • 189
  • 1
  • 3
  • 16
0
votes
1 answer

TrippleDES without base 64 encoding: Given final block not properly padded

I'm trying to encrypt and decrypt a string using TrippleDES algorythm and without using Base64 encoding (my app will be talking to another app that has these requirements). Everything worked beautifully when I was testing stuff using Base64…
Creature
  • 994
  • 1
  • 12
  • 27