AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.216.192
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/opt/cpanel/ea-ruby24/src/passenger-release-6.0.20/test/cxx/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /proc/self/root/opt/cpanel/ea-ruby24/src/passenger-release-6.0.20/test/cxx//Base64DecodingTest.cpp
#include <TestSupport.h>
#include <modp_b64.h>

using namespace Passenger;
using namespace modp;
using namespace std;

namespace tut {
	struct Base64DecodingTest: public TestBase {
		string decode(const char* base64string){
			return b64_decode(base64string);
		}

	};

	DEFINE_TEST_GROUP(Base64DecodingTest);

	/***** Valid base64 *****/
	TEST_METHOD(1) {
		ensure_equals(decode(""),"");
	}
	TEST_METHOD(2) {
		ensure_equals(decode("YQ=="),"a");
	}
	TEST_METHOD(3) {
		ensure_equals(decode("YWI="),"ab");
	}
	TEST_METHOD(4) {
		ensure_equals(decode("YWJj"),"abc");
	}
	TEST_METHOD(5) {
		ensure_equals(decode("VGhpcyBpcyBhIHRlc3Qgb2YgYSBsb25nZXIgc3RyaW5nLg=="),"This is a test of a longer string.");
	}
}

Anon7 - 2022
AnonSec Team