Revisions for framework/Secret/Secret.php

Location: [ Horde ] / framework / Secret / Secret.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.45.10.13 FRAMEWORK_3 (+2 -1 lines) 10/06/2008 04:54 PM Michael M Slusarz slusarz

MFH 1.58

1.58 (+2 -1 lines) 10/06/2008 04:04 PM Michael M Slusarz slusarz

Util:: is required here.

1.45.10.12 FRAMEWORK_3 (+2 -2 lines) 08/08/2008 12:39 AM Chuck Hagenbuch chuck

MFH 1.57

Tags: HORDE_3_3, HORDE_3_3_RC1

1.57 (+2 -2 lines) 08/07/2008 11:17 PM Chuck Hagenbuch chuck

fix variable name

1.45.10.11 FRAMEWORK_3 (+65 -47 lines) 08/05/2008 07:11 PM Michael M Slusarz slusarz

MFH 1.56

1.56 (+65 -47 lines) 08/05/2008 03:20 PM Michael M Slusarz slusarz

Combine a bunch of duplicate code into private helper functions.
Use error_reporting() instead of '@' as it is much faster.

1.45.10.10 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2_2, HORDE_3_2_1, HORDE_3_2, HORDE_3_2_RC4, HORDE_3_2_RC3, HORDE_3_2_RC2

1.55 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.45.10.9 FRAMEWORK_3 (+6 -2 lines) 12/20/2007 08:49 AM Jan Schneider jan

Merge from HEAD.

1.54 (+5 -1 lines) 12/03/2007 12:16 AM Chuck Hagenbuch chuck

Return false instead of generating encryption errors if $key is empty (Bug #5925).

Tags: BEFORE_MERGE_3_2

1.45.10.8 FRAMEWORK_3 (+2 -2 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_1_9, HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5, HORDE_3_1_4, HORDE_3_1_4_RC1

1.53 (+2 -2 lines) 01/02/2007 07:47 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2_RC1, HORDE_3_2_ALPHA

1.52 (+2 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.45.10.7 FRAMEWORK_3 (+18 -1 lines) 03/02/2006 12:25 AM Michael M Slusarz slusarz

Bug: 3386
MFH: Horde.php - 1.576; Secret.php - 1.51

Tags: HORDE_3_1_3, HORDE_3_1_2, HORDE_3_1_1, HORDE_3_1

1.51 (+18 -1 lines) 02/28/2006 01:11 PM Michael M Slusarz slusarz

Bug: 3386
Reset cookies on login to prevent cookie timeouts.

1.45.10.6 FRAMEWORK_3 (+2 -2 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: HORDE_3_1_RC3, HORDE_3_1_RC2, HORDE_3_1_RC1

1.50 (+2 -2 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.45.10.5 FRAMEWORK_3 (+1 -1 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.45.10.4 FRAMEWORK_3 (+1 -9 lines) 07/03/2005 01:52 AM Matt Selsky selsky

MFH: Remove "@access public" and fix formatting/wrapping.

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1, HORDE_3_0_5, HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.49 (+1 -9 lines) 07/03/2005 01:21 AM Matt Selsky selsky

Remove "@access public" and fix formatting/wrapping.

Tags: BEFORE_MERGE_3_1

1.45.10.3 FRAMEWORK_3 (+3 -3 lines) 05/09/2005 10:01 PM Matt Selsky selsky

MFH: "optional" not needed in phpdoc.

1.48 (+3 -3 lines) 05/09/2005 09:55 PM Matt Selsky selsky

"optional" not needed in phpdoc.

1.45.10.2 FRAMEWORK_3 (+10 -5 lines) 04/02/2005 12:39 AM Chuck Hagenbuch chuck

MFH: session_set_cookie_params() expects a relative timeout; setcookie wants
absolute. Go back to a configinteger for $conf['session']['timeout'] and
add time() to that value in setcookie() calls (Bugs #1302, #1658).

1.47 (+10 -5 lines) 04/02/2005 12:38 AM Chuck Hagenbuch chuck

[cjh] session_set_cookie_params() expects a relative timeout; setcookie wants
absolute. Go back to a configinteger for $conf['session']['timeout'] and
add time() to that value in setcookie() calls (Bugs #1302, #1658).

1.46 (+1 -1 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.45.10.1 FRAMEWORK_3 (+3 -3 lines) 01/03/2005 07:19 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1, HORDE_3_0_2, HORDE_3_0_1

1.45 (+4 -4 lines) 09/05/2004 09:50 PM Chuck Hagenbuch chuck

This apparently fixes severe problems for some people.

Tags: FRAMEWORK_3, HORDE_3_0, HORDE_3_0_RC3

1.44 (+16 -19 lines) 09/01/2004 01:11 PM Chuck Hagenbuch chuck

Small tweaks, be consistent with cookie-setting. Also go back to using the session_id()
for the key if we can't set a cookie.

1.43 (+4 -4 lines) 08/26/2004 05:44 PM Chuck Hagenbuch chuck

oops. parse.

1.42 (+6 -7 lines) 08/26/2004 05:35 PM Chuck Hagenbuch chuck

Avoid array_key_exists.

1.41 (+3 -3 lines) 07/27/2004 02:12 PM mdjukic

honour the cookie timeout value in conf

1.40 (+4 -4 lines) 04/07/2004 10:43 AM Chuck Hagenbuch chuck

No more HORDE_LIBS.

1.39 (+3 -3 lines) 03/06/2004 11:33 PM Chuck Hagenbuch chuck

Mark cookies as secure if $conf['use_ssl'] is 1.

Bug: 1311

Tags: HORDE_3_0_ALPHA

1.38 (+3 -3 lines) 01/01/2004 10:14 AM Jan Schneider jan

Happy new year everyone.

1.37 (+4 -4 lines) 10/30/2003 08:04 PM Jan Schneider jan

Get Horde_Cipher from the framework.

1.36 (+3 -3 lines) 09/24/2003 12:58 PM Jan Schneider jan

Fix package name

1.35 (+4 -4 lines) 09/16/2003 07:06 PM Jan Schneider jan

Use the new Util:: class.

1.34 (+3 -3 lines) 07/05/2003 01:04 AM mikec

Comment

1.12.2.13 RELENG_2 (+37 -14 lines) 04/12/2003 04:50 PM Michael M Slusarz slusarz

MFH: Optimizations of Scret:: and Horde_Cipher:: drivers.

Tags: HORDE_2_2_4_RC2, HORDE_2_2_4_RC1, HORDE_2_2_4, HORDE_2_2_3, HORDE_2_2_2

1.33 (+3 -2 lines) 03/31/2003 08:49 AM Jan Schneider jan

If we use transparent authentication, the user already gets logged in at
the very first page request. At this moment we haven't any cookie set yet,
hence Secret::getKey() falls back to the non-cookie key.
If login.php is loaded into the frameset on the second request, a cookie
exists and a new key is generated making the old one (and everything
encrypted with it, like the credentials from the transparent authentication)
invalid.
The only solution I came up with is to set the cookie key with the fallback
key to have a consistent key through the whole session, even if cookies get
"turned on" during the session.

1.32 (+4 -4 lines) 02/11/2003 03:36 PM Michael M Slusarz slusarz

Added Horde::extensionExists() to cache extension_loaded() calls.

1.31 (+13 -7 lines) 02/10/2003 09:20 AM mikec

Cache the Horde_Cipher in write() also

1.30 (+13 -7 lines) 02/06/2003 12:10 PM mikec

Cache the Horde_Cipher object in Secret::read() so key is not generated everytime the cipher object is created.
Reduces horde_cipher_blowfish::encryptblock() call from 3672 to 25 :-)

1.12.2.12 RELENG_2 (+4 -3 lines) 02/05/2003 07:54 PM Jan Schneider jan

MFH 1.29: Strip padding characters.

1.29 (+5 -4 lines) 02/05/2003 07:42 PM Jan Schneider jan

Strip padding characters.

From the PHP manual (mdecrypt_generic):
Note that the length of the returned string can in fact be longer then the
unencrypted string, due to the padding of the data.

1.28 (+4 -4 lines) 01/10/2003 01:34 PM Chuck Hagenbuch chuck

fix blockmode name

1.27 (+3 -21 lines) 01/10/2003 12:15 AM Chuck Hagenbuch chuck

No need to call srand() since PHP 4.2.0.

1.12.2.11 RELENG_2 (+10 -2 lines) 01/09/2003 08:00 AM Jan Schneider jan

Fix for older PHP versions.

Tags: HORDE_2_2_1, HORDE_2_2_1_RC1, HORDE_2_2, HORDE_2_2_RC2

1.12.2.10 RELENG_2 (+3 -3 lines) 01/03/2003 07:48 AM Jan Schneider jan

Bump year.

Tags: HORDE_2_2_RC1

1.26 (+3 -3 lines) 01/02/2003 09:32 PM Jan Schneider jan

Bump year.

1.12.2.9 RELENG_2 (+59 -35 lines) 12/30/2002 10:32 AM Jan Schneider jan

MFH:
[jan] Change Secret:: from using PEAR Crypt_HCEMD5 to the Horde_Cipher class
(mac).
[jan] Add Horde_Cipher:: class to provide a common abstracted interface to
various Ciphers for encryption of arbitrary length pieces of data (mac).

1.25 (+3 -3 lines) 12/27/2002 10:43 AM Jan Schneider jan

Another deprecated function call.

1.12.2.8 RELENG_2 (+4 -4 lines) 12/23/2002 09:00 PM Michael M Slusarz slusarz

Mcrypt is NOT broken, as far as I can tell.  And it is MUCH, MUCH more
efficient than the PHP alternative.

1.24 (+3 -3 lines) 12/23/2002 08:59 PM Jan Schneider jan

mcrypt_generic_end() is deprecated.

1.23 (+29 -24 lines) 12/23/2002 08:51 PM Michael M Slusarz slusarz

It appeared as if we were not using mcrypt at all - fixed that.  Now, at
least on my machine, with mcrypt built into PHP, logins are 3 times faster.
That's right, you heard correctly, 3 TIMES FASTER. WOW! (On high-end
machines this may not make much of a difference, but on my AMD K6-350 it
is very, very noticable).
phpdoc, private function naming, array_key_exists() usage.

1.22 (+15 -10 lines) 11/22/2002 07:41 AM mikec

[mac] Change Secret:: from using PEAR Crypt_HCEMD5 to the Horde_Cipher class.

1.21 (+18 -8 lines) 08/09/2002 12:43 PM Chuck Hagenbuch chuck

Do a bit more error checking, and maybe, maybe fix up some of the
unserialize problems.

1.12.2.7 RELENG_2 (+8 -1 lines) 07/26/2002 07:08 PM Jan Schneider jan

MFH: Added LGPL license information to the top of all Horde library files.

1.20 (+10 -3 lines) 07/26/2002 03:58 PM Michael M Slusarz slusarz

Added LGPL license information (per CODING_STANDARDS) to the top of all
Horde library files.  My fingers hurt.

1.19 (+8 -5 lines) 07/08/2002 06:27 PM Chuck Hagenbuch chuck

* Rename config/horde.php to config/conf.php.
* Move cookie_domain, cookie_path, server_name, and server_port into
  horde/conf.php.
* Add a parameter for setting the session cache_limiter.

1.12.2.6 RELENG_2 (+3 -3 lines) 06/25/2002 07:53 PM Jan Schneider jan

MFH:
* Add Horde::createTempDir().
* Add Horde::usingSSLConnection().
* Replace <?= with <?php echo to remove the short_open_tags requirement.
* Add Text::toHTML(), Text::highlightQuotes() and Text::dimSignature().
* Add Registry::listApps().
* Add Prefs::getPref() for getting preferences for someone other than the
  logged-in user.
* Add the ability to load identities for someone other than the logged-in
  user.
* Add Horde::removeParameter().
* Add Browser::downloadHeaders().
* Add detection for UTF capability to Browser class.

1.12.2.5 RELENG_2 (+8 -8 lines) 06/19/2002 10:58 AM Jan Schneider jan

Use superglobal arrays.

Submitted by: Nuno Loureiro <nuno@co.eth.pt>

1.18 (+3 -3 lines) 06/12/2002 02:00 AM Chuck Hagenbuch chuck

phpdoc updates/commenting fixes

1.17 (+8 -8 lines) 04/23/2002 05:28 AM Jan Schneider jan

The last bunch of superglobals patches.

Submitted by: Nuno Loureiro <nuno@eth.pt>

1.12.2.4 RELENG_2 (+16 -16 lines) 04/04/2002 08:24 PM jon

Kill trailing whitespace (to reduce diffs with HEAD).

Tags: HORDE_2_1, HORDE_2_1_RC3, HORDE_2_1_RC2

1.16 (+16 -16 lines) 03/21/2002 11:41 AM jon

Kill trailing whitespace.

1.12.2.3 RELENG_2 (+3 -3 lines) 03/08/2002 01:15 PM Chuck Hagenbuch chuck

nit

Tags: HORDE_2_1_RC1

1.12.2.2 RELENG_2 (+4 -2 lines) 03/08/2002 01:12 PM Chuck Hagenbuch chuck

MFH: add $Horde: $, fix secret cookie test.

1.15 (+3 -1 lines) 03/08/2002 01:11 PM Chuck Hagenbuch chuck

add $Horde: $

1.14 (+2 -2 lines) 02/25/2002 08:01 PM Chuck Hagenbuch chuck

check for the session cookie, not just any old cookie - you might be getting an old cookie.

1.12.2.1 RELENG_2 (+13 -8 lines) 11/30/2001 03:14 PM Chuck Hagenbuch chuck

MFH 1.13: don't set the secret cookie if it's already there, and use
$registry->getParam().

Tags: HORDE_2_0_RC4, HORDE_2_0_RC3, HORDE_2_0

1.13 (+13 -8 lines) 11/27/2001 03:19 PM Chuck Hagenbuch chuck

don't set the key cookie if it's already there, and also use $registry->getParam()

1.12 (+29 -25 lines) 09/06/2001 07:26 PM Chuck Hagenbuch chuck

add better error checking, in the case that we're able to re-enable mcrypt
support.

Tags: RELENG_2, HORDE_2_0_RC2, HORDE_2_0_0_RC1

1.11 (+4 -7 lines) 08/30/2001 10:15 AM Chuck Hagenbuch chuck

mcrypt is broken, so break the function check not to use it.

1.10 (+3 -2 lines) 07/17/2001 06:13 AM avsm

Cleanup: change all the $conf['paths'] variables to query this information
from the registry using the new API functions:

getTemplatePath(), getWebRoot(), getFileRoot(), getGraphicsPath()

Update your config files!

1.9 (+2 -2 lines) 07/10/2001 12:56 PM Chuck Hagenbuch chuck

fix setcookie arguments

1.8 (+2 -2 lines) 06/14/2001 03:57 PM Chuck Hagenbuch chuck

Add cookie_path and cookie_domain settings for people who keep apps outside
of the Horde webroot or on multiple servers.

1.7 (+1 -2 lines) 06/11/2001 09:17 PM jon

Remove (presumably) debugging code.

1.6 (+3 -2 lines) 06/11/2001 04:45 PM Chuck Hagenbuch chuck

use the Horde base url as the path for secret cookies.

1.5 (+3 -3 lines) 02/05/2001 03:18 PM avsm

Switch from MCRYPT_BLOWFISH to MCRYPT_GOST, which should solve the segfault
problem that people have been experiencing when logging in.

libmcrypt-2.4.9 broke back-compat due to an endian-ness problem in blowfish,
and PHP-4.0.4pl1 doesn't work with it anymore.  The problem is fixed in
PHP-4.0.5-dev, so this is a temporary measure to avoid everyone having to
upgrade to latest CVS (which is somewhat unstable for at the moment!)

This can be reverted to BLOWFISH when everything is stable again.  Btw,
GOST is the "Gosudarstvennyi Standard" from the former USSR.  Cool, huh?

Tags: HORDE_1_3_4

1.4 (+3 -3 lines) 02/04/2001 01:54 PM Chuck Hagenbuch chuck

try using the mt_ random number functions.

1.3 (+40 -1 lines) 01/24/2001 12:58 AM Chuck Hagenbuch chuck

oops, turba won't work without these.

- Add getKey() and setKey() to the Secret:: class. These are generic functions;
there's no need for them to be in every Horde app.

1.2 (+89 -89 lines) 01/20/2001 03:03 PM Chuck Hagenbuch chuck

whitespace...

1.1 01/12/2001 12:46 PM Chuck Hagenbuch chuck

Woof:

- break core Horde classes (Lang, Secret, ObjectStore (renamed from
  SessionCache), etc. out into their own files.
- include them where necessary, usually in an app's lib/base.php file.
- core package names are all now lowercase.
- a bit more documentation work, but that's mostly to come.
- classes all now follow a convention of capitalizing words and acronyms
- documentation is updated accordingly
- logic is built in to the factory() methods to account for case in driver
  names.