mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-26 02:45:31 +01:00
Use SHA256 for identicons
This commit is contained in:
@@ -216,7 +216,7 @@ class ImageHelper {
|
||||
|
||||
static byte[] getHash(String email) {
|
||||
try {
|
||||
return MessageDigest.getInstance("MD5").digest(email.getBytes());
|
||||
return MessageDigest.getInstance("SHA256").digest(email.getBytes());
|
||||
} catch (NoSuchAlgorithmException ignored) {
|
||||
return email.getBytes();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user