Add some missing docblocks.
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
|
||||
// Change for phpMyAdmin by lem9:
|
||||
//class Horde_Cipher_blowfish extends Horde_Cipher {
|
||||
/**
|
||||
* Horde Blowfish cipher class.
|
||||
* @package horde.cipher
|
||||
*/
|
||||
class Horde_Cipher_blowfish
|
||||
{
|
||||
/* Pi Array */
|
||||
@@ -478,17 +482,17 @@ class Horde_Cipher_blowfish
|
||||
*
|
||||
* @author lem9
|
||||
*/
|
||||
function PMA_blowfish_encrypt($data, $secret)
|
||||
function PMA_blowfish_encrypt($data, $secret)
|
||||
{
|
||||
$pma_cipher = new Horde_Cipher_blowfish;
|
||||
$encrypt = '';
|
||||
|
||||
|
||||
$mod = strlen($data) % 8;
|
||||
|
||||
|
||||
if ($mod > 0) {
|
||||
$data .= str_repeat("\0", 8 - $mod);
|
||||
}
|
||||
|
||||
|
||||
foreach (str_split($data, 8) as $chunk) {
|
||||
$encrypt .= $pma_cipher->encryptBlock($chunk, $secret);
|
||||
}
|
||||
@@ -512,7 +516,7 @@ function PMA_blowfish_decrypt($encdata, $secret)
|
||||
$pma_cipher = new Horde_Cipher_blowfish;
|
||||
$decrypt = '';
|
||||
$data = base64_decode($encdata);
|
||||
|
||||
|
||||
foreach (str_split($data, 8) as $chunk) {
|
||||
$decrypt .= $pma_cipher->decryptBlock($chunk, $secret);
|
||||
}
|
||||
|
Reference in New Issue
Block a user