decryption

Decrypt data using an RSA public key

First off, that is not a typo, I want to decrypt using a public key. The purpose for doing this is to challenge a third party to ensure they do, in fact, have the private key that corresponds to the public key. Basically, I would send some random data, they would encrypt it with their private key, I would decrypt it using the public ke...

Crypto++ AES Decrypt how to?

There are next to no noob guides to crypto++ out there. Or none that I've found anyway. What I want to do is decrypt an array of uchars I generate with another AES encrypter. Where would I start? I have the library built and linking grand. Do I need to set anything up or do I just call a function on my array (and if so what function) ? ...

How to decrypt XML file in C#

How to read the encrypted file of XML in C# ...

C# Can't generate initialization vector IV

Hi, I get the following error when I try to create a IV initialization vector for TripleDES encryptor. Please see the code example: TripleDESCryptoServiceProvider tripDES = new TripleDESCryptoServiceProvider(); byte[] key = Encoding.ASCII.GetBytes("SomeKey132123ABC"); byte[] v4 = key; byte[] connectionString = Encoding.ASCII.GetBytes...

Problem in retrieving a decrypted data

Hello everyone, I am working on encryption-decryption program. Program gets an input from the user and encrypts it. Then it stores the encrypted data in ms access database table. Later, the data is retrieved from the table , decrypted and given back to the user. I am storing the data as text in the ms access. The encryption algorithm r...

Decrypt AES128-encrypted data

Hello, I am trying to decrypt the data from last couple of days. I decrypt the data but the result is not same as original. Please, can anyone suggest how I can do this. I am trying to decrypt the following data: Encrypted Data : "Mmb9tEkmW82oFPJb3vNhHA==" Encrypt Key : "91860F52E5C3A09BA3B827F28070E08D" Original data: "Marco" Pleas...

Encrypt/Decrypt Form Fields auto in Cake PHP

Hey, I was just wondering how to decrypt/encrypt form data in cakephp by creating a behavior? What I have so far: $key = Configure::read('Security.cipherSeed'); Security::cipher($encrypt,$key) debug($key); function encrypt { var $autoEncrypt= 'true';} function decrypt {} Other than this I really could use some help. ...

Storing a secretkey in the database and retrieving it

I am doing a project on password encryption and decryption using AES algorithm. I need to store the key of type SecretKeySpec in the database(ms-access) and have to retrieve it. How can i do this? I have created a column in the database of type oletype object. I am using a query: String query="insert into encrypt values(?)"; how to se...

Decryption of different keys give the same result

Hi, I saw this behavior today while working with a Java EE Framework. Every time I'm getting an int ID from the server, that ID is encrypted + encoded in base 64, and the encrypted string is sent back. Each request gives a different encrypted key. The behavior that is strange is that if I make 5 requests, the encrypted text I received a...

How to decrypt AES/CBC with known IV

I have an impossible task of decrypting AES/CBC encrypted data packets sent from a client. I've done tons of research leading me to believe that the encryption is insecure if the IV is static. For this task specifically, the IV is always statically set to 0. Is there any way this can be done? ...

How can I decrypt a string using AES algorithm in c#?

Hi, I have an encrypted string from one of our customers. This string was encrypted using the AES method in Java. The only thing I have is the key: "xxxxxxxxxxxxxxxxxxxxxxxx" (24 chars) and the encrypted text: "56e84e9f6344826bcfa439cda09e5e96" (32 chars). (This really is the only data I have) I can't seem to find a method to decryp...

Executing Application inside an archive file without extraction

I want to compress and encrypt my whole application, maybe with Zip, 7z, Bz2, Tar, or any compression method, and using AES-128/256 as encryption algorithm for security purposes. Then create a launcher application which will handle the execution of the application and decryption of the archive. I already have an idea on how to achieve i...

Encrypt in ActionScript3 and Decrypt in asp.net c#

Hi, I need to send data from flash to the server, so I'm looking for a flash ActionScript 3.0 script that will encrypt a text and a C# .net script that decrypt the text. Can anyone help me here ? ...

Check password before decryption.

I'm writing small program (C++) to encrypt/decrypt files. Before decryption I would like to check if password given by user is correct. My idea: Add at the beginning of file some string (for example: "GOOD"); Encrypt file When decrypting first decrypt the beginning of file and check for "GOOD" string Is this correct? ...

Decrypting EFS encrypted files

I have a number of files that were encrypted using EFS on my old Windows XP installation. I installed Windows 7 and now I can't access these files. You can read about the whole embarrassing situation here. The good news is that I have keys that will allow the files to be decrypted. I know this because I used EFS data recovery and it ...

What are the general ideas of decrypting a cipher?

I am trying to improve my skills in encryption and decryption, put there are too many ways to encryption, what ideas are common in this subject, are there any books that talk about that? thanks alot. ...

Decrypting an encrypted text file generated using PL/SQL, encryption type AES256/CBC/PKCS5

Hi I generated a text file, obtaining data from columns in a table. I have then encrypted that data using PL/SQL and encryption type of AES256/CBC/PKCS5. I now need a program for the end user to use to decrypt that text file without needing to have oracle installed. (I know the solution of how to do it in Oracle, but the end user w...

Is it possible to add a "Master" password for an encrypt/decrypt program?

Hi! I've written an encryption program that encrypts and decrypts selected files using a user-entered password as the encryption key. Once en/decrypted, the user will be asked if they want to delete the file that was used, and, in the case of decryption, open the newly decrypted file. My brother came up with an idea for this applicati...

Rijndal Algorithm using C#

I want the code of Rijndael algorithm to encrypt any given text to store it in a database, I also want to know how to reverse the encryption method, ie: decrypt the encrypted text to use it. ...

Cipher Text Stealing Algorithms - Which one is correct?

There are two algorithms presented in the web. In both the algorithms, the first part is the same... 1. Pad the last partial plaintext block with 0. 2. Encrypt the whole padded plaintext using the standard CBC mode. 3. Swap the last two ciphertext blocks. 4. Truncate the ciphertext to the length of the original plaintext...