From: Baduk Baduk Date: 2010-05-01T18:41:51+09:00 Subject: Re: Encrypting/Decrypting files wirh ruby. There are many examples of using OpenSSL to encrypt and decrypt files in Ruby, which can be found via Google. But why not just use OpenSSL straight from the command line? Demetris Constantinou wrote: > I have been searching the internet to find a way to encrypt files and > then decrypt the back.. What I found is how to encrypt a string of text > and then decrypt it back. > > For exampe you have a > plaintext = "some text" > > you encrypt it into a ciphertext and then how to decrypt it back. > > What I want to do is to encrypt a whole file, files like .doc, .docx, > .xls, .pps and so on. Basically any file either this is a document, a > photo or whatever. > > Any help on how to achieve this. I found a library 'ChilKat' but you > need to purchase a license to do this. > > Any help is much appreciated! > > Regards, > Demetris Constantinou -- Posted via http://www.ruby-forum.com/.