MCPcopy Create free account
hub / github.com/M66B/FairEmail / getSalt

Method getSalt

app/src/main/java/eu/faircode/email/CloudSync.java:617–619  ·  view source on GitHub ↗
(String user)

Source from the content-addressed store, hash-verified

615 }
616
617 private static byte[] getSalt(String user) throws NoSuchAlgorithmException {
618 return MessageDigest.getInstance("SHA256").digest(user.getBytes());
619 }
620
621 static String getCloudUser(String user) throws NoSuchAlgorithmException {
622 return getCloudUser(getSalt(user));

Callers 3

getCloudUserMethod · 0.95
_callMethod · 0.95
nsec3hashMethod · 0.80

Calls 3

digestMethod · 0.65
getInstanceMethod · 0.45
getBytesMethod · 0.45

Tested by

no test coverage detected