Skip to content

Print deprecation when openssl_encrypt truncates passphrase #9302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

iluuu1994
Copy link
Member

Fixes GH-9026

@bukka
Copy link
Member

bukka commented Aug 11, 2022

Not a probably good idea at this stage - see my response in the issue.

@iluuu1994
Copy link
Member Author

Thanks for your feedback @bukka! So maybe the better approach is to provide a function to receive the expected passphrase length for a given cipher. I can look into that instead.

@iluuu1994 iluuu1994 closed this Aug 11, 2022
@bukka
Copy link
Member

bukka commented Aug 18, 2022

@iluuu1994 FYI I have created a PR for openssl_cipher_key_length: #9368

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

do not silently truncate the key in openssl_encrypt()
2 participants