You can do both ways. If you use shell script, you can do it using the
command you have already used. But if you want to integrate with some C++
program you are already writing, then I think the C libraries would be
better. Take a look at the underlying libraries they are using. You can
also use those in your own program.
http://www.gnupg.org/related_software/libraries.en.html . Also since its
GPLed library, if you decide to distribute your program, you must also use
GPL. Especially check out this one,
http://www.gnupg.org/related_software/gpgme/index.en.html. I think this is
all you would need.

On Wed, Jul 18, 2012 at 1:06 PM, Hüseyin Çalışkan <[email protected]>wrote:

> Thanks for answers but I will do it with GnupG . So problem is a do with
> bach code or c++ code . How can I do it ?
>
>
> On 18 July 2012 10:14, Supreet Sethi <[email protected]> wrote:
>
>> I think Rishabh's answer is quite interesting. From a professional
>> point of view xor is like sending plain text. Sadly our esteemed cs
>> acadamic community still looks at it as good enough solution
>>
>> On 7/18/12, Debasish Ray Chawdhuri <[email protected]>
>> wrote:
>> > That's not encryption, any skilled hacker will break it in a few
>> minutes.
>> > That is why so many people have created such good secure algorithms.
>> >
>> > On Wed, Jul 18, 2012 at 11:22 AM, Rishabh.rammstien
>> > <[email protected]>wrote:
>> >
>> >> Hi,
>> >>
>> >> You can use simple c++ XOR algorithm to  encrypt the file.
>> >> suppose 8 bit password entered by user is 10101010
>> >>
>> >> Encrypt byte :11010010
>> >> 11010010
>> >>    XOR         Encrypted Output= 01111000
>> >> 10101010
>> >>
>> >> Decrypt byte: 01111000
>> >> 01111000
>> >>     XOR         Decrypted Output= 11010010
>> >> 10101010
>> >> Done
>> >>
>> >> Rishabh Sharma
>> >> Anantya R&D
>> >>
>> >> On Tuesday, July 17, 2012 6:38:24 PM UTC+5:30, TeknoCepni wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> I want to encrypt the file then one software decipher this file and
>> read
>> >>> it.
>> >>> How can I do it ?
>> >>>
>> >>> Programming language : C++
>> >>> Ofcourse in Linux.
>> >>>
>> >>>
>> >>> Huseyin Caliskan
>> >>>
>> >>>
>> >>>  --
>> >> Mailing list guidelines and other related articles:
>> >> http://lug-iitd.org/Footer
>> >>
>> >
>> >
>> >
>> > --
>> > Debasish Ray Chawdhuri
>> > http://www.geekyarticles.com/
>> > [A collection of advanced articles on java]
>> >
>> > --
>> > Mailing list guidelines and other related articles:
>> > http://lug-iitd.org/Footer
>> >
>>
>>
>> --
>> Supreet Sethi
>> Ph IN: +919811143517
>> Ph Skype: d_j_i_n_n
>> Profile: http://www.google.com/profiles/supreet.sethi
>> Twt: http://twitter.com/djinn
>>
>> --
>> Mailing list guidelines and other related articles:
>> http://lug-iitd.org/Footer
>>
>
>  --
> Mailing list guidelines and other related articles:
> http://lug-iitd.org/Footer
>



-- 
Debasish Ray Chawdhuri
http://www.geekyarticles.com/
[A collection of advanced articles on java]

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to