-
Notifications
You must be signed in to change notification settings - Fork 18
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
GamCryptography EO migration to GamUtils EO on Github #885
base: master
Are you sure you want to change the base?
Conversation
gamutils/src/test/java/com/genexus/gam/utils/test/resources/CryptographicHash.java
Outdated
Show resolved
Hide resolved
public String ComputeHash(String data) { | ||
try { | ||
if (alg == null) alg = MessageDigest.getInstance("SHA-512"); | ||
alg.update(data.getBytes(CharEncoding.UTF_8)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to use StandardCharsets.UTF_8 instead of CharEncoding.UTF_8
Using StandardCharsets UnsupportedEncodingException catch is unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to not change that, it is the old implementation copied into resources to check for backwards compatibility.
gamutils/src/test/java/com/genexus/gam/utils/test/CertificateTest.java
Outdated
Show resolved
Hide resolved
gamutils/src/test/java/com/genexus/gam/utils/test/CertificateTest.java
Outdated
Show resolved
Hide resolved
gamutils/src/main/java/com/genexus/gam/utils/CertificateUtil.java
Outdated
Show resolved
Hide resolved
BETA RESET - Cherry pick to beta failed, 2 conflicted files in commit 2d150fc
|
Cherry pick to beta success |
GamCryptography EO migration from svn to GamUtils EO on Github