MCPcopy Index your code
hub / github.com/CDSecLab/MJXT / Get_SHA_256

Method Get_SHA_256

src/main/java/utils/Hash.java:40–51  ·  view source on GitHub ↗
(byte[] passwordToHash)

Source from the content-addressed store, hash-verified

38 }
39
40 public static byte[] Get_SHA_256(byte[] passwordToHash) {
41 try {
42 MessageDigest md = MessageDigest.getInstance("Sha-256");
43 md.update(passwordToHash);
44 byte[] bytes = md.digest();
45 return bytes;
46 }
47 catch (NoSuchAlgorithmException e) {
48 e.printStackTrace();
49 }
50 return null;
51 }
52
53 public static byte[] Get_SHA_128(byte[] passwordToHash) {
54 try {

Callers 13

mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95
constructMethod · 0.95

Calls

no outgoing calls

Tested by 9

mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76
mainMethod · 0.76