Skip to content

in the encryption.php file #892

@mdk1980

Description

@mdk1980

I have a quick question from the encryption.php file located in the core folder. Obviously, its a file for encryption and decryption of string data. My question lies in the decrypt($ciphertext) function.

in that function on line 95 you have $macSize = 64; I can't understand where this variable comes from and why its exactly 64.

also, in that same decrypt( ) function, there is on line 97:
$iv_cipher = mb_substr ( $ciphertext, $macSize, NULL , '8bit' ); because of the NULL value, wont this function return an empty string? See: https://www.w3schools.com/php/func_string_substr.asp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions