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

Method getHash

app/src/extra/java/eu/faircode/email/VirusTotal.java:194–198  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

192 }
193
194 private static String getHash(File file) throws IOException, NoSuchAlgorithmException {
195 try (InputStream is = new FileInputStream(file)) {
196 return Helper.getHash(is, "SHA-256");
197 }
198 }
199
200 private static Pair<Integer, String> call(Context context, String api, String apiKey) throws IOException {
201 URL url = new URL(URI_ENDPOINT + api);

Callers 2

getUrlMethod · 0.95
lookupMethod · 0.95

Calls 1

getHashMethod · 0.95

Tested by

no test coverage detected