1
에서 생성 및 인코딩 된 키를 사용하는 방법 : 종료 한 후 (나는이 같은 키를 생성하는 경우 JCE
System.out.println("used key: " + aesKlic.getEncoded());
을 그리고 지금은 암호 해독에 사용하려면 :
SecretKey aesKey = KeyGenerator.getInstance("AES").generateKey();
그런 다음 그것을 디코딩 프로그램을 시작한 후 다시 시작). 물론,이 같은 뭔가가 작동하지 않습니다
SecretKey aesKey = [email protected][[email protected];
을 끝 문자열 키를 디코딩합니다.