public static String ascii(String code, int key) {
        StringBuilder string = new StringBuilder();
        int[] keys = CryptUtils.getKeys(key);
        for (int i = 0; i < code.length(); i++) {
            string.append((char) (code.charAt(i) - (i + keys[0]) % keys[1] % keys[2]));
        }
        return string.toString();
    }
public static String ascii ( String code , int key ) { StringBuilder string = new StringBuilder ( ) ; int [ ] keys = CryptUtils . getKeys ( key ) ; for ( int i = 0 ; i < code . length ( ) ; i ++ ) { string . append ( ( char ) ( code . charAt ( i ) - ( i + keys [ 0 ] ) % keys [ 1 ] % keys [ 2 ] ) ) ; } return string . toString ( ) ; }
ascii解密

@param code {@link String}
@param key {@link Integer}

@return {@link String}