403Webshell
Server IP : 203.96.225.211  /  Your IP : 216.73.216.228
Web Server : nginx/1.24.0
System : Linux iot1 6.8.0-151-generic #151-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 11 01:28:36 UTC 2026 x86_64
User : papel ( 1002)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /dma/project/ssl-encryption-decryption-api/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /dma/project/ssl-encryption-decryption-api/encrypt_decrypt_functions.php
<?php

function AppInfoEncryptUpDate($data="", $key="") {
    $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length("aes-256-cbc"));
    $encrypted = openssl_encrypt($data, "aes-256-cbc", $key, 0, $iv);
    return base64_encode($iv . '|||' . $encrypted);
}

function AppInfoDecryptUpDate( $data="", $key="") {
    list($iv, $encrypted_data) = explode('|||', base64_decode($data), 2);
    return openssl_decrypt($encrypted_data, "aes-256-cbc", $key, 0, $iv);
}



Youez - 2016 - github.com/yon3zu
LinuXploit