public static String Sha256(String rawKey) throws ProcessingException {
MessageDigest md = MessageDigest.getInstance("SHA-256");
byte[] encrypted = md.digest(rawKey.getBytes());
return new String(Hex.encodeHex(encrypted));
} catch (NoSuchAlgorithmException ex) {
String errorMessage = "Unable to hash this string";
throw new ProcessingException(errorMessage);