On 2001-05-04 20:21:28, "Sascha Kettler" <[EMAIL PROTECTED]> wrote: > Sounds ok, although I wouldn't call it openssl_key_* but openssl_asym_* > similar. Yeah, that sounds better. > I don't know what people would prefer: Separate functions or a > boolean. What's the general opinion on that? IMHO, openssl_asym_public_encrypt is just a bit too long for a function name. I suppose a more sensible way is to define some constants (sth like): OPENSSL_ENC_PUBLIC and OPENSSL_ENC_PRIVATE so that the parameter has an instant obvious meaning (compared to just true/false). Mind you: strlen(constant) + strlen(openssl_asym_encrypt) > strlen(openssl_asym_public_encrypt)... I suppose it's just psychological, but shorter function names seem shorter overall (to me anyway). --Wez. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Re: [PHP-DEV] openssl module for php Sascha Kettler
- Re: [PHP-DEV] openssl module for php Stig Venaas
- Re: [PHP-DEV] openssl module for php Sascha Kettler
- Re: [PHP-DEV] openssl module for php Wez Furlong
- Re: [PHP-DEV] openssl module for php Sascha Kettler
- Re: [PHP-DEV] openssl module for php spencer 'sporty' portee
- Re: [PHP-DEV] openssl module for php Sascha Kettler
- Re: [PHP-DEV] openssl module for php Wez Furlong
- Re: [PHP-DEV] openssl module for php Stig Venaas
- Re: [PHP-DEV] openssl module for php Sascha Kettler
- Re: [PHP-DEV] openssl module for php Wez Furlong
- Re: [PHP-DEV] openssl module for php Sascha Kettler
- Re: [PHP-DEV] 4.0.5: Merge Request Sterling Hughes
- Re: [PHP-DEV] 4.0.5: Merge Request Andrei Zmievski
- Re: [PHP-DEV] 4.0.5: Merge Request Sterling Hughes
- Re: [PHP-DEV] 4.0.5: Merge Request Andrei Zmievski
- Re: [PHP-DEV] 4.0.5: Merge Request Sterling Hughes
- Re: [PHP-DEV] 4.0.5: Merge Request Andi Gutmans
- Re: [PHP-DEV] 4.0.5: Merge Request Anil Madhavapeddy
- Re: [PHP-DEV] 4.0.5: Merge Request Andi Gutmans
- Re: [PHP-DEV] 4.0.5: Merge Request Stephen van Egmond