src/main/java/me/codeboy/common/base/security/CBMd5Sha.java
public static String sha(String text) {
        if (text == null) {
            return null;
        }
        if (text.length() == 0) {
            return "";
        }
        try {
            md2.update(text.getBytes("UTF8"));
            return hex(md2.digest());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
public static String sha(String text) {
        if (text == null) {
            return null;
        }
        if (text.length() == 0) {
            return "";
        }
        try {
            md2.update(text.getBytes("UTF8"));
            return hex(md2.digest());
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
public static String sha ( String text ) { if ( text == null ) { return null ; } if ( text . length ( ) == 0 ) { return "" ; } try { md2 . update ( text . getBytes ( "UTF8" ) ) ; return hex ( md2 . digest ( ) ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } return null ; }
sha加密 此处对text进行反向，对结果再次反向

@param text
输入字 串
@return sha编 后 字 串
sha加密 此处对text进行反向，对结果再次反向