LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 05-20-2012, 10:29 AM   #1
AbdulKabani
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
 
  


Reply


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 05:24 PM
Maxtor BlackArmor AES 128 bit drive cannot mount z01krh Linux - Hardware 2 01-23-2010 12:07 AM
OpenSSL Encryption with AES kaplan71 Linux - Software 3 11-26-2008 12:46 PM
Decrypt an AES-128 bit encrypted file flouran Linux - Software 3 10-05-2008 07:00 PM
AES for openssh and openssl powah Linux - Software 1 04-21-2008 08:59 AM


All times are GMT -5. The time now is 12:46 AM.

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