NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP and keystores

Rob Marscher rmarscher at beaffinitive.com
Thu Nov 29 11:28:33 EST 2012


I have used these functions before for encrypting/decrypting with
public/private key pairs:

openssl_get_privatekey()
openssl_get_publickey()
openssl_public_encrypt()
openssl_private_decrypt()

You need to have the openssl module enabled though (compile php using
--with-openssl in the configure arguments).

If this is something you are doing a lot, using a module is going to be
more efficient than php-based functions.

On Thu, Nov 29, 2012 at 11:13 AM, CED <consult at covenantedesign.com> wrote:

> Just encryption and decryption of credentials.
>
>
> On 11/28/2012 6:25 PM, Rob Marscher wrote:
> > On Nov 28, 2012, at 7:23 PM, CED <consult at covenantedesign.com> wrote:
> >
> >> I have a need to use a private key within PHP... does anyone have any
> >> recommendations on this?
> >> I looked at http://phpkeystore.com/ but I'm not sure... any thoughts?
> > Can you give a little more context on what you need to do with the
> private key?
> >
> > Is it for securely connecting to a remote site via ssh/sftp?
> >
> > Or is it to sign or encrypt some data!
> >
> > Or some other use?
> > _______________________________________________
> > New York PHP User Group Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > http://www.nyphp.org/show-participation
> >
> >
> >
>
>
> --
> <img src="http://covenantedesign.com/logo.jpg" border ="0">
> 995 Maple Hill Road
> Castleton, New York 12033
> 518-331-5061
> Consult at CovenanteDesign.com
>
> _______________________________________________
> New York PHP User Group Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> http://www.nyphp.org/show-participation
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20121129/765a97d9/attachment.html>


More information about the talk mailing list