class CommonUtils {

    public static String decryptB64(String text) throws IOException {

        // remove random salt, length will be always 12
        // Each base64 digit represents exactly 6 bits of data. Three 8-bit
        // bytes (i.e., a total of 24 bits) can therefore be represented by four
        // 6-bit base64 digits.
        String cipher = text.substring(12);
        return new String(Base64.getDecoder().decode(cipher));
    }

}