Crypt_Blowfish
[ class tree: Crypt_Blowfish ] [ index: Crypt_Blowfish ] [ all elements ]

Class: Crypt_Blowfish_CBC

Source Location: /Crypt_Blowfish-1.1.0RC2/Blowfish/CBC.php

Class Overview

Crypt_Blowfish
   |
   --Crypt_Blowfish_PHP
      |
      --Crypt_Blowfish_CBC

Example


Author(s):

Version:

  • 1.1.0RC2

Copyright:

  • 2005-2008 Matthew Fonda

Methods


Inherited Variables

Inherited Methods

Class: Crypt_Blowfish_PHP

Crypt_Blowfish_PHP::__construct()
Crypt_Blowfish_PHP Constructor Initializes the Crypt_Blowfish object, and sets the secret key
Crypt_Blowfish_PHP::setKey()
Sets the secret key The key must be non-zero, and less than or equal to 56 characters (bytes) in length.
Crypt_Blowfish_PHP::_binxor()
Workaround for XOR on certain systems
Crypt_Blowfish_PHP::_decipher()
Deciphers a single 64-bit block
Crypt_Blowfish_PHP::_encipher()
Enciphers a single 64-bit block

Class: Crypt_Blowfish

Crypt_Blowfish::Crypt_Blowfish()
Crypt_Blowfish Constructor Initializes the Crypt_Blowfish object (in EBC mode), and sets the secret key
Crypt_Blowfish::decrypt()
Decrypts an encrypted string
Crypt_Blowfish::encrypt()
Encrypts a string
Crypt_Blowfish::factory()
Crypt_Blowfish object factory
Crypt_Blowfish::getBlockSize()
Returns the algorithm's block size
Crypt_Blowfish::getIVSize()
Returns the algorithm's IV size
Crypt_Blowfish::getMaxKeySize()
Returns the algorithm's maximum key size
Crypt_Blowfish::init()
Deprecated init method - init is now a private method and has been replaced with _init
Crypt_Blowfish::isReady()
Deprecated isReady method
Crypt_Blowfish::setKey()
Sets the secret key The key must be non-zero, and less than or equal to 56 characters (bytes) in length.

Class Details

[line 51]
Example



[ Top ]


Method Detail

__construct (Constructor)   [line 74]

Crypt_Blowfish_CBC __construct( [string $key = null], [string $iv = null])

Class constructor
  • Access: public

Overrides Crypt_Blowfish_PHP::__construct() (Crypt_Blowfish_PHP Constructor Initializes the Crypt_Blowfish object, and sets the secret key)

Parameters:

string   $key   — 
string   $iv   —  initialization vector

[ Top ]

Crypt_Blowfish_CBC (Constructor)   [line 62]

Crypt_Blowfish_CBC Crypt_Blowfish_CBC( [string $key = null], [string $iv = null])

Crypt_Blowfish Constructor Initializes the Crypt_Blowfish object, and sets the secret key
  • Access: public

Parameters:

string   $key   — 
string   $iv   —  initialization vector

[ Top ]

decrypt   [line 125]

string|PEAR_Error decrypt( string $cipherText)

Decrypts an encrypted string

The value was padded with NUL characters when encrypted. You may need to trim the result or cast its type.

  • Return: Returns plain text on success, PEAR_Error on failure
  • Access: public

Overrides Crypt_Blowfish::decrypt() (Decrypts an encrypted string)

Parameters:

string   $cipherText   — 

[ Top ]

encrypt   [line 90]

string|PEAR_Error encrypt( string $plainText)

Encrypts a string

Value is padded with NUL characters prior to encryption. You may need to trim or cast the type when you decrypt.

  • Return: Returns cipher text on success, PEAR_Error on failure
  • Access: public

Overrides Crypt_Blowfish::encrypt() (Encrypts a string)

Parameters:

string   $plainText   —  string of characters/bytes to encrypt

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:25:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.