SHA256Util.java 236 B

12345678910
  1. package com.goafanti.common.utils;
  2. import org.apache.shiro.crypto.hash.SimpleHash;
  3. public class SHA256Util {
  4. public static String toHash(String source, String salt) {
  5. return new SimpleHash("sha-256", source, salt, 1).toHex();
  6. }
  7. }