(String b)
| 98 | } |
| 99 | |
| 100 | public static String hash(String b) { |
| 101 | try { |
| 102 | MessageDigest d = MessageDigest.getInstance("SHA-256"); |
| 103 | return bytesToHex(d.digest(b.getBytes(StandardCharsets.UTF_8))); |
| 104 | } catch (NoSuchAlgorithmException e) { |
| 105 | e.printStackTrace(); |
| 106 | } |
| 107 | |
| 108 | return "¯\\_(ツ)_/¯"; |
| 109 | } |
| 110 | |
| 111 | public static String hash(File b) { |
| 112 | try { |
no test coverage detected