^ 연산자를 통한 간단한 암호화가 가능하다! package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { // write your code here Scanner scn = new Scanner(System.in); int input = scn.nextInt(); int lock = 0x81726321; int code = (input ^ lock); System.out.println("입력 받은 값: " + input); System.out.println("암호화: " + code); System.out.println("복호화: " + (code^lock)); } }