Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/th9Jm
function name: (null)
number of ops: 21
compiled vars: !0 = $data, !1 = $secretKey, !2 = $encrypted, !3 = $decrypted
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
3 0 E > ASSIGN !0, 'This+text+will+encrypt+using+openssl%21'
4 1 ASSIGN !1, 'mykey'
10 2 INIT_FCALL 'encrypt'
3 SEND_VAR !0
4 SEND_VAR !1
5 DO_FCALL 0 $6
6 ASSIGN !2, $6
16 7 INIT_FCALL 'decrypt'
8 SEND_VAR !2
9 SEND_VAR !1
10 DO_FCALL 0 $8
11 ASSIGN !3, $8
18 12 INIT_FCALL 'var_dump'
13 CONCAT ~10 'Encrypted%3A+', !2
14 SEND_VAL ~10
15 DO_ICALL
19 16 INIT_FCALL 'var_dump'
17 CONCAT ~12 'Decrypted%3A+', !3
18 SEND_VAL ~12
19 DO_ICALL
20 20 > RETURN 1
Function encrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/th9Jm
function name: encrypt
number of ops: 16
compiled vars: !0 = $data, !1 = $secretKey
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
6 0 E > RECV !0
1 RECV !1
8 2 INIT_FCALL 'base64_encode'
3 INIT_FCALL_BY_NAME 'openssl_encrypt'
4 SEND_VAR_EX !0
5 SEND_VAL_EX 'AES-256-CBC'
6 SEND_VAR_EX !1
7 SEND_VAL_EX 0
8 DO_FCALL 0 $2
9 SEND_VAR $2
10 DO_ICALL $3
11 FRAMELESS_ICALL_3 strtr ~4 $3, '%2B%2F%3D'
12 OP_DATA '-_%2C'
13 FRAMELESS_ICALL_1 trim ~5 ~4
14 > RETURN ~5
9 15* > RETURN null
End of function encrypt
Function decrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/th9Jm
function name: decrypt
number of ops: 16
compiled vars: !0 = $encrypted, !1 = $secretKey
line #* E I O op fetch ext return operands
-----------------------------------------------------------------------------------------
12 0 E > RECV !0
1 RECV !1
14 2 INIT_FCALL_BY_NAME 'openssl_decrypt'
3 INIT_FCALL 'base64_decode'
4 FRAMELESS_ICALL_3 strtr ~2 !0, '-_%2C'
5 OP_DATA '%2B%2F%3D'
6 SEND_VAL ~2
7 DO_ICALL $3
8 SEND_VAR_NO_REF_EX $3
9 SEND_VAL_EX 'AES-256-CBC'
10 SEND_VAR_EX !1
11 SEND_VAL_EX 0
12 DO_FCALL 0 $4
13 FRAMELESS_ICALL_1 trim ~5 $4
14 > RETURN ~5
15 15* > RETURN null
End of function decrypt
Generated using Vulcan Logic Dumper, using php 8.5.0