Skip to content

Commit

Permalink
phpseclib/phpseclib 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
garciademarina committed Oct 14, 2015
1 parent 5629a20 commit 7c3ab35
Show file tree
Hide file tree
Showing 100 changed files with 39,742 additions and 5 deletions.
5 changes: 5 additions & 0 deletions oc-includes/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"phpseclib/phpseclib": "^2.0"
}
}
8 changes: 4 additions & 4 deletions oc-includes/osclass/helpers/hSecurity.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ function osc_encrypt_alert($alert) {
while (strlen($string) % 32 != 0) {
$string .= "\0";
}
require_once LIB_PATH . 'phpseclib/Crypt/Rijndael.php';
$cipher = new Crypt_Rijndael(CRYPT_RIJNDAEL_MODE_CBC);
//require_once LIB_PATH . 'phpseclib/Crypt/Rijndael.php';
$cipher = new \phpseclib\Crypt\Rijndael(CRYPT_RIJNDAEL_MODE_CBC);
$cipher->disablePadding();
$cipher->setBlockLength(256);
$cipher->setKey($key);
Expand All @@ -310,8 +310,8 @@ function osc_decrypt_alert($string) {
}
return trim(substr($cipherText, 32));
};
require_once LIB_PATH . 'phpseclib/Crypt/Rijndael.php';
$cipher = new Crypt_Rijndael(CRYPT_RIJNDAEL_MODE_CBC);

$cipher = new \phpseclib\Crypt\Rijndael(CRYPT_RIJNDAEL_MODE_CBC);
$cipher->disablePadding();
$cipher->setBlockLength(256);
$cipher->setKey($key);
Expand Down
7 changes: 7 additions & 0 deletions oc-includes/vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInitb490076a45828aa92da26bc6de25cb18::getLoader();
Loading

0 comments on commit 7c3ab35

Please sign in to comment.