[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/horde/framework/Horde/Crypt/ -> Blowfish.php (summary)

Copyright 2005-2008 Matthew Fonda <mfonda@php.net> Copyright 2012-2014 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Copyright: 2005-2008 Matthew Fonda
Copyright: 2012-2014 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 178 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Crypt_Blowfish:: (5 methods):
  __construct()
  __get()
  encrypt()
  decrypt()
  setKey()


Class: Horde_Crypt_Blowfish  - X-Ref

Provides blowfish encryption/decryption, with or without a secret key,
for PHP strings.

__construct($key, array $opts = array()   X-Ref
Constructor.

param: string $key  Encryption key.
param: array $opts  Additional options:

__get($name)   X-Ref
No description

encrypt($text)   X-Ref
Encrypts a string.

param: string $text  The string to encrypt.
return: string  The ciphertext.

decrypt($text)   X-Ref
Decrypts a string.

param: string $text  The string to decrypt.
return: string  The plaintext.

setKey($key, $iv = null)   X-Ref
Sets the secret key.

The key must be non-zero, and less than or equal to MAXKEYSIZE
characters (bytes) in length.

param: string $key  Key must be non-empty and less than MAXKEYSIZE
param: string $iv   The initialization vector to use. Only needed for



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1