Skip to content

Conversation

@volosied
Copy link
Contributor

@volosied volosied changed the title MYFACES-4726 [5.0.x] MYFACES-4726 [5.0.x] Use SHA256DRBG as default psuedo-random generator Jun 24, 2025
@volosied volosied marked this pull request as draft June 24, 2025 19:16
@volosied
Copy link
Contributor Author

Conflicts...? I'll have to look at them.

The new defaults will be "SHA256DRBG","DRBG", "SHA1PRNG".
They are in order of priority. This is backwards compatible
since previous versions only allowed one option.
* Sets the random algorithm to initialize the secure random id generator.
* By default is SHA1PRNG
* The default is SHA256DRBG,DRBG,SHA1PRNG (in order of priority).
* The "SHA256DRBG,DRBG, and SHA1PRNG" options were introduced in 4.1.2.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5.0 isn't released, so I'll keep the 4.1.2 tag here.

@volosied volosied marked this pull request as ready for review August 18, 2025 20:12
@volosied
Copy link
Contributor Author

SHA256DRBG is not available on all JDKs. I don' think it should be the default.

SHA1PRNG is still used by Tomcat, so I think there's no rush to move to something stronger just yet.

Closing this for now, but perhaps we can revisit it.

@volosied volosied closed this Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant