Date: 05/04/01
- Next message: millz <email protected>: "[PHP-DEV] Bug #10675: Executing background job from PHP causes session lock-up"
- Previous message: ahill <email protected>: "[PHP-DEV] Bug #9571 Updated: Undefined symbols in apache build using PHP 4.0.4pl1"
- In reply to: Wez Furlong: "Re: [PHP-DEV] openssl module for php"
- Next in thread: Stig Venaas: "Re: [PHP-DEV] openssl module for php"
- Reply: Stig Venaas: "Re: [PHP-DEV] openssl module for php"
- Reply: Wez Furlong: "Re: [PHP-DEV] openssl module for php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> On 2001-05-04 17:59:03, "Stig Venaas" <venaas <email protected>> 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?
Sounds ok, although I wouldn't call it openssl_key_* but openssl_asym_* or
similar. I don't know what people would prefer: Separate functions or a
boolean. What's the general opinion on that?
Sascha
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: millz <email protected>: "[PHP-DEV] Bug #10675: Executing background job from PHP causes session lock-up"
- Previous message: ahill <email protected>: "[PHP-DEV] Bug #9571 Updated: Undefined symbols in apache build using PHP 4.0.4pl1"
- In reply to: Wez Furlong: "Re: [PHP-DEV] openssl module for php"
- Next in thread: Stig Venaas: "Re: [PHP-DEV] openssl module for php"
- Reply: Stig Venaas: "Re: [PHP-DEV] openssl module for php"
- Reply: Wez Furlong: "Re: [PHP-DEV] openssl module for php"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

