I'm writing small program to encrypt/decrypt files using AES. I'm using Cryptopp library.
I need help to understand some things.
When I'm encrypting file I should write IV at the beginning of file to decrypt it later?
I wan't to check password given do decrypt file was correct. Should I:
put some string at beginning of file (ex. TRU...
Hello there,
I'm going to make a long story short. It's been a while that I want to implement my own AES encryption/decryption program. The encryption program went well and encrypting without any error or strange output (Since I have compared my program's output with a working commercial one and result was the same).
Wikipedia was (is)...
I want to encrypt a string using AES with my own key. But I'm having trouble with the bit length of the key. Can you review my code and see what I need to fix/change.
public static void main(String[] args) throws Exception {
String username = "[email protected]";
String password = "Password1";
String secretID = "BlahBlahBlah";
...
Dear all,
I have downloaded the LZMA SDK from the 7zip website but to my disappointment it does only support compression and decompression and does not support AES cypto. Does anyone know if there is any implementation of 7zip with AES cypto completely in JAVA?. Thanks.
Regards,
Kal.
...
I am doing AES CBC decryption in java using javax.crypto . I am using the following Cipher class methods:
public final void init (int opmode, Key key, AlgorithmParameters params) method for initialization,
final int update(byte[] input, int inputOffset, int inputLen, byte[] output) method for decrypting the data,
and finally I call t...
In my current iPhone project I need to decrypt zip files which have been encrypted using AES 256 method either on a Mac with StuffIt Engine or on Windows with WinZip.
I tried to use ZipArchive (based on MiniZip) but it doesn't work. Anyone knows how to do this ?
...
I have an encryption/decryption algorithm written in C# - I need to be able to produce the same encryption in PHP so I can send the encrypted text over HTTP to be decrypted on the C# side.
Here is the C# code for the encryption.
this.m_plainText = string.Empty;
this.m_passPhrase = "passpharse";
this.m_saltValue = "saltvalue";
this.m_has...
Hello,
I'm currently working on a voip project and have a question about the implementation of AES-CBC mode. I know that for instant messaging based on text message communication, it's important to generate an IV for every message to avoid possible guess of the first block if this one is redundant during the communication.
But is it us...
I would like to use AES (192 or 256 bits), but am stuck on how to generate a key from a user supplied password.
I have gone through this thread, and am able to run the program in Java 6. However, I need to run the same program in Java 5, and SecretKeyFactory for PBKDF2WithHmacSHA1 is not available in JDK 5.
So, essentially, I need to g...
Hey
i have some problem to decrypted a file, which was encrypted using a C# AES256 implementation with an IV (in vector) as an 16bit byte-array and 32bit byte-array for the key. For decryption i used Apple's CommonCryptor CCCrypt, but my key is an NSString. So how can i convert the NSString to an 32bit byte-array/unsigned char?
...
Is there any javascript libs that lets you encrypt and decrypt 256 bit AES the way you do it with mcrypt in PHP (and get the same result of course)? I want to give it a variable-length message and a 32 chars key. All libs i find wants fixed-length blocks of cleartext and byte-arrays of keys...
This is how it's done in php:
$iv_size = m...
Despite all the advices to use SSL/https/etc. I decided to implement my own security layer on top of http for my application... The concept works as follows:
User registers -> a new RSA Keypair is generated
the Private Key gets encrypted with AES using the users login Password
(which the server doesnt know - it has only the sha256 for a...
To keep it simple I am using a hard coded key and IV for now.
AesWriter (below) encrypts and writes the original plaintext, Abc\t1234\t\t\t\t\n, to a file as 11,87,-74,122,-127,48,-118,39,82,-83,68,-30,-84.
But AesReader (also below) decrypts the contents of the file consistently as zW?D?4?rc?~???~?_=p?J. Any ideas where I am going wrong...
I have generated on my android application a pair of RSA Keys.
I receive from a web service
- an AES Key, encrypted with my RSA public key
- a String encoded with the AES key.
So I must do the following:
- decrypt the AES Key
- decrypt the string with the obtained AES Key.
To generate the RSA Keys I did:
keyGen = KeyPairGenerator.g...
I hope this is clear enough:
I have an Authentication service which queries my aspnet role provider database.
Authentication service passes the role details back to the client inside the User object.
Using the role, I query my web.config to determine values that a user can see.
Security team has done a review, and they can see the Role...
I need to be able to unzip some AES (WinZip) encrypted zip files from within some C/C++ code on Windows. Has anybody got a way to do this? I'm hoping for either some appropriate code or a DLL I can use (with an example usage). So far my searches have proved fruitless.
The commonly prescribed InfoZip libraries do not support AES encrypt...
Hi,
Does anyone know if C# can be used in .NET Framework 2.0 to use AES 256 encryption and decryption? Appreciate if the in-built framework supports this or if we have to use any external APIs for the same?
Thanks.
...
Hello,
I have been implementing AES onto my website for security and I have ran into a glitch/problem to which I am un-able to find an answer and I find it quite bizzare.
I BELIEVE I know where it resides but I don't know how/where to do the fix.
Currently I have PHP 5 and the latest MySQL running on my local server.
Here is a small...
Hi All,
I'm new to OpenSSL. I understand that encryption should be performed using the EVP API which acts as a common interface to all the ciphers. AES CTR mode seems to be present in the version of OpenSSL that I have, but the definition for EVP_aes_128_ctr is disabled in evp.h:
#if 0
const EVP_CIPHER *EVP_aes_128_ctr(void);
#endif
A...
In the Erlang crypto library, there is no aes_cfb_ivec function. Does it mean that the same IVec should be used for multiple rounds? Or should the encrypted data from the last step be used, as in the example of "DES in CBC mode" at the end of the linked page?
...