Skip to content
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

Encryption Class does not allow to change digest parameter from SHA512 to SHA256 or others #3404

Closed
crustamet opened this issue Jul 25, 2020 · 2 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@crustamet
Copy link
Contributor

I was trying to encrypt a message with a lower security hmac.

With the SHA512 it just occupy so much space and i want to occupy less space for the message to be encrypted.

For a 6 char message i get a big encrypted message while this is to big for my database to handle.

I just want to use hmac SHA256 for this.

Is this the intended functionality for the encryption library ?
Maybe i`m using something that i don't need to use.

@crustamet crustamet added the bug Verified issues on the current code behavior or pull requests that will fix them label Jul 25, 2020
@crustamet
Copy link
Contributor Author

Or can we please have a variable that returns the hex instead of binary for the config encryption ?

@michalsn
Copy link
Member

Just add public $digest = 'SHA256'; to your Encryption config file.

Hex for encryption config key - there is a PR underway that will solve this: #3397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants