Skip to content

Description of OPENSSL_RAW_DATA is wrong #3826

@tomty89

Description

@tomty89

From manual page: https://php.net/openssl.constants.other

If OPENSSL_RAW_DATA is set in the openssl_encrypt() or openssl_decrypt(), the returned data is returned as-is. When it is not specified, Base64 encoded data is returned to the caller.


For openssl_decrypt(), OPENSSL_RAW_DATA does NOT affect the representation of the returned data, but is used to indicate whether "data" (i.e., the ciphertext) is raw or base64-encoded. The function always returns the "plaintext" as-is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDocumentation contains incorrect information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions