解密:yawceoreo@uelm@ 提示:全⼩写,不需要空格,注意要有符号。

我刚刚学习ctf知识不久。遇到这个,想了很久想不出,于是来请教,希望能教晚辈!


public class DecryptString {
    public static String decrypt(String s) {
        // 将字符串中的大写字母转换为小写
        s = s.toLowerCase();
        // 在字符串中添加符号
        s = s.replace("a", "@");
        s = s.replace("e", "3");
        s = s.replace("o", "0");
        s = s.replace("u", "^");
        // 返回处理后的字符串
        return s;
    }

    public static void main(String[] args) {
        String encryptedString = "yawceoreo@uelm@";
        String decryptedString = decrypt(encryptedString);
        System.out.println(decryptedString);
    }
}