I'm hashing a password in Java using google's Hashing
.
password = Hashing
.sha256()
.hashString(input, StandardCharsets.UTF_8)
.toString();
When I pass any text to that line, it hashes and outputs everything with lowercase characters, for example, if I pass "foo", the value of password
becomes:
2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
However, if I use this site to hash "foo", the value it outputs is
2C26B46B68FFC68FF99B453C1D30413413422D706483BFA0F98A5E886266E7AE
As far as I can tell that's just the exact same password except with uppercase letters instead of lowercase.
What's causing those to output different values, and how can I get guava to output with uppercase letters (without just calling toUpperCase, unless that's really the only way)