Operating System - HP-UX
1826388 Members
4861 Online
109692 Solutions
New Discussion

PGP encryption of a string of data

 
Belinda Dermody
Super Advisor

PGP encryption of a string of data

We posted this question about 2 years ago, hopping something new has come up. Looking for a pgp utility/program that will encrypt a string of data (credit card information), the tool/program must use private and public keys for this function.
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: PGP encryption of a string of data

For use in what context? Interactively? In
a program?

Perhaps a better question would get a better
answer. PGP is "a pgp utility/program".
GnuPG seems to be more popular these days.
Both can encrypt/decrypt data, typically in
files. OpenSSL might be useful, too.

Google should be able to find more info on
any/all of them.
Steven E. Protter
Exalted Contributor

Re: PGP encryption of a string of data

Shalom,

pgp encrypts files prior to transmission. The crypt function will do fine on a data string in a shell script.

What you should do is use PGP release which is part of http://software.hp.com Internet Express.

Use it to encrypt the file prior to transporting it as an email attachment.

http://www.hpux.ws/?p=7
Send it with this script.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven Schweda
Honored Contributor

Re: PGP encryption of a string of data

> [...] prior to transmission. [...]

Who said anything about transmitting
anything?

> the tool/program must use private and
> public keys for this function.

> [...] The crypt function will do fine [...]

Does "crypt" do that? Define "fine".

"man crypt":

[...]
crypt implements a one-rotor machine designed
along the lines of the German Enigma, but
with a 256-element rotor. Methods of attack
on such machines are widely known; thus crypt
provides minimal security.
[...]

Perhaps "minimal security" would not be
"fine" in this context.

Again, an intelligible description of the
actual problem to be solved might go a long
way toward selecting a suitable solution.
Dennis Handly
Acclaimed Contributor

Re: PGP encryption of a string of data

>We posted this question about 2 years ago

Is this the thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=996886