Re: openssl module for php

From: Date: Fri, 04 May 2001 18:24:07 +0000
Subject: Re: openssl module for php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53926@lists.php.net to get a copy of this message
On 2001-05-04 17:59:03, "Stig Venaas" <venaas@php.net> wrote: > followed up on that. It would be good if you and Sascha Kettler could > agree on how the API should be How about: openssl_key_encrypt( string data, // to encrypt string &crypted, // encrypted result mixed key, // key to use bool public, // true if you want public key, false for private key [int padding] // optional padding ); and: openssl_key_decrypt( string data, // to decrypt string &decrypted, // decrypted result mixed key, // key to use bool public, // true if you want public key, false for private key [int padding] // optional padding ); Where key can specify the key using the extended syntax added in 4.0.6 (see php manual online for more info). This rolls 4 functions into two. The relevant cipher is encoded in the key. Thoughts? Comments? Suggestions? --Wez.

« previous php.dev (#53926) next »