public static function Drupal_Crypt_Blowfish::getkey in Web Service Clients 7
Same name and namespace in other branches
- 6.2 connections/clients_drupal/crypt_blowfish/crypt_blowfish.inc \Drupal_Crypt_Blowfish::getkey()
- 6 backends/clients_drupal/crypt_blowfish/crypt_blowfish.inc \Drupal_Crypt_Blowfish::getkey()
- 7.3 connections/clients_drupal/crypt_blowfish/crypt_blowfish.inc \Drupal_Crypt_Blowfish::getkey()
- 7.2 connections/clients_drupal/crypt_blowfish/crypt_blowfish.inc \Drupal_Crypt_Blowfish::getkey()
3 calls to Drupal_Crypt_Blowfish::getkey()
- crypt_blowfish_admin in backends/
clients_drupal/ crypt_blowfish/ crypt_blowfish.module - crypt_blowfish_requirements in backends/
clients_drupal/ crypt_blowfish/ crypt_blowfish.install - Implementation of hook_requirements
- Drupal_Crypt_Blowfish::blowfish in backends/
clients_drupal/ crypt_blowfish/ crypt_blowfish.inc
File
- backends/
clients_drupal/ crypt_blowfish/ crypt_blowfish.inc, line 42 - Wrapper for PEAR Crypt Blowfish
Class
Code
public static function getkey() {
$filename = drupal_get_path('module', 'crypt_blowfish') . '/crypt_blowfish_key.inc';
$handle = fopen($filename, "r");
$key = fread($handle, filesize($filename));
fclose($handle);
return $key;
}