decript 256 - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of decript 256.php
- <?php
- $key = 'chbauto#testeenviron992828288921';
- // $vector = chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0) . chr(0x0);
- // $encryptedString = openssl_encrypt('teste', 'aes-256-cbc', $key);
- // echo 'Encrypted: '.$encryptedString."\n";
- // $encryptedStringBase64 = base64_encode($encryptedString);
- // echo 'Encrypted + base 64:'.$encryptedStringBase64."\n";
- $encryptedStringBase64 = "N1dzekQydnZBUllBdFZFTTNGTEplcU94VHdINHdwNDdTczQrelpzWUVpcEl5MVUwUlFsNUhsMllpbkNQc1JPRVZ1TTNPYi8rcEttWS9uc0RSb085VzlEcmI3aUZLUUdPYSt0NzlSYTU0blZMUE5nbHdoTC83UVRhS3d0SmJQZjJEeHNmaFZ6WGdSWEx5Zm54WVhSVytxaXpoUGRpZDM5U2pWOEhOSTVEejJYb1Vheng3WnZRYlZrZjdtZXpJR3lH";
- echo 'Decrypted:'.openssl_decrypt(base64_decode($encryptedStringBase64),'AES-256-ECB', $key)."\n";
File Description
- decript 256
- PHP Code
- 01 Jun-2021
- 916 Bytes
You can Share it:
Latest PHP Pastes