class HaloUtils {

    @Api(2.0)
    public static String sha1(@NonNull String origin) throws UnsupportedEncodingException, NoSuchAlgorithmException {
        MessageDigest md = MessageDigest.getInstance("SHA-1");
        md.update(origin.getBytes("iso-8859-1"), 0, origin.length());
        byte[] sha1hash = md.digest();
        return convertToHex(sha1hash);
    }

    private  HaloUtils();

}