Skip to content

mcrypt_create_iv() is not available in PHP>7.2 #6

@chybaDapi

Description

@chybaDapi

Hello,

in PHP>7.2 there is no possibilities to use mcrypt_create_iv() function (athens/encryption/src/Cipher.php:41). The solution could be to replace

$iv = mcrypt_create_iv(self::IV_SIZE, MCRYPT_RAND);

with

$iv = openssl_random_pseudo_bytes(self::IV_SIZE);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions