Date: 03/30/99
- Next message: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tuesday March 30, 1999 @ 7:55
Author: rasmus
Update of /repository/php3/doc/functions
In directory asf:/home/rasmus/php3/doc/functions
Modified Files:
strings.sgml
Log Message:
Change crypt_salt_length() function to a constant
Index: php3/doc/functions/strings.sgml
diff -c php3/doc/functions/strings.sgml:1.57 php3/doc/functions/strings.sgml:1.58
*** php3/doc/functions/strings.sgml:1.57 Tue Mar 30 07:42:11 1999
--- php3/doc/functions/strings.sgml Tue Mar 30 07:55:06 1999
***************
*** 181,187 ****
crypt function for more information.
<simpara>
If the salt argument is not provided, it will be randomly generated
! by PHP.
<simpara>
Some operating systems support more than one type of encryption.
In fact, sometimes the standard DES encryption is replaced by an
--- 181,187 ----
crypt function for more information.
<simpara>
If the salt argument is not provided, it will be randomly generated
! by PHP.
<simpara>
Some operating systems support more than one type of encryption.
In fact, sometimes the standard DES encryption is replaced by an
***************
*** 191,221 ****
types. If no salt is provided, PHP will auto-generate a standard
2-character DES salt by default unless the default encryption type
on the system is MD5 in which case a random MD5-compatible salt
! is generated.
<simpara>
The standard DES encryption <function>crypt</function> contains
the salt as the first two characters of the output.
<simpara>
There is no decrypt function, since <function>crypt</function>
uses a one-way algorithm.
- </refsect1>
- </refentry>
-
- <refentry id="function.crypt-salt-length">
- <refnamediv>
- <refname>crypt_salt_length</refname>
- <refpurpose>Return the length of the salt on this system</refpurpose>
- </refnamediv>
- <refsect1>
- <title>Description</title>
- <funcsynopsis>
- <funcdef>int <function>crypt_salt_length</function></funcdef>
- </funcsynopsis>
- <simpara>
- On systems where the system's crypt() function defaults to using MD5, the
- salt is not a simple 2-character string like it has traditionally always
- been. This function will return the length of the salt component of the
- encrypted string.
</refsect1>
</refentry>
--- 191,205 ----
types. If no salt is provided, PHP will auto-generate a standard
2-character DES salt by default unless the default encryption type
on the system is MD5 in which case a random MD5-compatible salt
! is generated. PHP sets a constant named CRYPT_SALT_LENGTH which
! tells you whether a regular 2-character salt applies to your system
! or the longer 12-char MD5 salt is applicable.
<simpara>
The standard DES encryption <function>crypt</function> contains
the salt as the first two characters of the output.
<simpara>
There is no decrypt function, since <function>crypt</function>
uses a one-way algorithm.
</refsect1>
</refentry>
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Previous message: rasmus: "[PHP-DEV] CVS update: php3"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

