Jan Lehnardt: encrypt() und decrypt()

Beitrag lesen

Hi,

in PHP gibt es weder die Funktion encrypt(), noch die Funktion decrypt()

http://www.zend.com/phpfunc/function.decrypt.html,
http://www.zend.com/phpfunc/function.encrypt.html

Grobe Luege wuerde ich sagen ;-) seit PHP3.0.0 dabei.
Aus dem Source von PHP 3.0.15:

/* $Id: crypt.c,v 1.15 2000/02/20 18:40:32 eschmid Exp $ */  
[...]
/*
(string) encrypt(data,type,key)
(string) decrypt(data,type,key)

encrypts or decrypts data
        (string)data
        (int)type
        (string)key

type can be 0 to 3:
        IDEA = 0
        MDC = 1
        DES = 2
        XOR = 3

IDEA      data is at least 8 bytes long, key is 16 bytes.
    MDC       data is at least 8 bytes long, key is 8 bytes.
    DES       data is at least 32 bytes long, key is 16 bytes.
    XOR       data is at least 16 bytes long, key is 16 bytes.

returns encrypted or decrypted string.

NOTES:
IDEA is registered as the international patent WO 91/18459
"Device for Converting a Digital Block and the Use thereof".
For commercial use of IDEA, you should contact:
      ASCOM TECH AG
      Freiburgstrasse 370
      CH-3018 Bern, Switzerland
*/
[...]

Daher bin ich der Meinung, das es diese Befehle gibt

s.o. ;-)

Jan

PS: Ich wil meinen SelfBrowser wiederhaben!