Comming ucUs SH3LL V.2

Path : /home/gujo45me/public_html/farfans/sunat/librerias/robrichards/tests/
Disable Functions : exec,passthru,shell_exec,system
System : Linux server-604606.appsiete.com 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64

[ Home ][ Zone-h ][ Jumping ][ Symlink ][ Mass Depes ][ Command ]

File Upload :
Current File : /home/gujo45me/public_html/farfans/sunat/librerias/robrichards/tests/getcipherdata.phpt

--TEST--
Test the getCipherData() function.
--FILE--
<?php
require(dirname(__FILE__) . '/../xmlseclibs.php');
use RobRichards\XMLSecLibs\XMLSecEnc;

$doc = new DOMDocument();
$doc->load(dirname(__FILE__) . '/oaep_sha1-res.xml');


$objenc = new XMLSecEnc();
$encData = $objenc->locateEncryptedData($doc);
$objenc->setNode($encData);

$ciphervalue = $objenc->getCipherValue();
printf("Data CipherValue: %s\n", md5($ciphervalue));

$objKey = $objenc->locateKey();
$objKeyInfo = $objenc->locateKeyInfo($objKey);
$encryptedKey = $objKeyInfo->encryptedCtx;

$keyCV = $encryptedKey->getCipherValue();
printf("Key CipherValue: %s\n", md5($keyCV));

?>
--EXPECTF--
Data CipherValue: e3b188c5a139655d14d3f7a1e6477bc3
Key CipherValue: b36f81645cb068dd59d69c7ff96e835a

Copyright © 2019 | Powered By MecUs7