Encoding

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
quocbao
Forum Commoner
Posts: 59
Joined: Sat Feb 04, 2006 2:03 am
Location: HCM,Vietnam
Contact:

Encoding

Post by quocbao »

I'm looking 2-way encoding which using both public and private key
what method should i use ?
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Encoding

Post by Roja »

quocbao wrote:I'm looking 2-way encoding which using both public and private key
what method should i use ?
Need lots more information:

What are you trying to protect?
What impact is acceptable?
How large is the input?
How large do you want the output to be?
How secure do you need it to be?
User avatar
quocbao
Forum Commoner
Posts: 59
Joined: Sat Feb 04, 2006 2:03 am
Location: HCM,Vietnam
Contact:

Post by quocbao »

- What are you trying to protect?
It's just a string ( a message , for example )

- What impact is acceptable?
I don't know what to say :(

- How large is the input?
Well , it's just a string , maybe less than 2k

- How large do you want the output to be?
Equal to input , but a bit larger is acceptabe

- How secure do you need it to be?
As secure as it could be
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I've never tried doing that before. Would PGP/GPG be good for you? (I don't think there's a wrapper extension, so you'd have to interface with the command line)
Post Reply