Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-20-2012, 11:29 AM   #1
LQ Newbie
Registered: May 2012
Posts: 1

Rep: Reputation: Disabled
OPENSSL AES-128-CBC Encoding Format

I am able to encrypt and decrypt data file using openssl aes-128-cbc from command line but when I try to decrypt it using ManagedOpenSSL (Wrapper for C#) I do not get desired result. The real issue is encoding format. Please let me know the encoding format for encrypted file created using following command:

C:\2012\Crypto\OpenSSL>C:\OpenSSL-Win32\bin\openssl enc -e -aes-128-cbc -in NormalData.txt -out EncryptedData.txt -K hexKey -iv hexIV

where hexKey and hexIV are key and iv in hex(32 bytes).
File is properly decrypted using
C:\2012\Crypto\OpenSSL>C:\OpenSSL-Win32\bin\openssl enc -d -aes-128-cbc -in EncryptedData.txt -out DEcryptedData.txt -K hexKey -iv hexIV


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dm-crypt aes-xts-plain64 vs aes-cbc-essiv for volumes > 2TiB Molly Linux - Security 1 09-13-2010 06:24 PM
Maxtor BlackArmor AES 128 bit drive cannot mount z01krh Linux - Hardware 2 01-23-2010 01:07 AM
OpenSSL Encryption with AES kaplan71 Linux - Software 3 11-26-2008 01:46 PM
Decrypt an AES-128 bit encrypted file flouran Linux - Software 3 10-05-2008 08:00 PM
AES for openssh and openssl powah Linux - Software 1 04-21-2008 09:59 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration