Unix/Linux Go Back    


Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Encrypt and Decrypt file using RIJNDAEL-128

Programming


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 10-27-2015   -   Original Discussion by Shre
Shre's Unix or Linux Image
Shre Shre is offline
Registered User
 
Join Date: Oct 2015
Last Activity: 25 November 2015, 5:32 AM EST
Posts: 4
Thanks: 2
Thanked 1 Time in 1 Post
Encrypt and Decrypt file using RIJNDAEL-128

Hi All,

Can I use MCRYPT - (RIJNDAEL-128) / CBC mode to encrypt and decrypt a file?

I am trying to find some sample C program on internet, which will encrypt and decrypt a file. But was not able to find any thing.

Can some help me with the programming.

Thanks.
Sponsored Links
    #2  
Old Unix and Linux 10-27-2015   -   Original Discussion by Shre
Corona688's Unix or Linux Image
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 8 December 2017, 4:34 PM EST
Location: Saskatchewan
Posts: 22,541
Thanks: 1,158
Thanked 4,285 Times in 3,954 Posts
They call it AES now.

Encryption:


Code:
openssl aes-128-cbc -in top-secret-cotton-candy-plans.txt -out message.enc

Decryption:


Code:
openssl aes-128-cbc -d -in message.enc -out totally-not-suspicious-file.txt

Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Encrypt Password file and decrypt in a shell script sunpraveen Shell Programming and Scripting 1 08-26-2014 12:17 PM
Encrypt and Decrypt ilugopal Shell Programming and Scripting 2 11-23-2011 01:04 PM
How to encrypt and decrypt a file laknar Shell Programming and Scripting 2 12-11-2007 08:18 AM
Encrypt and Decrypt script shary Shell Programming and Scripting 9 12-11-2007 08:11 AM
Decrypt Des file - then encrypt frustrated1 Solaris 0 09-07-2006 06:38 PM



All times are GMT -4. The time now is 11:06 AM.