안녕하세요 ~
안드로이드로 프로그래밍을 하면서 공부를 하고 있는 학생입니다.
다름이 아니라, 제가 처음으로 이번에 라이브러리를 사용을 해보았는데 이걸 어찌어찌하여 적용을 시켰지만
이것이 정말 제데로 암호화가 되는지 확인을 하고 싶은데 그 방법을 모르겠습니다 ㅜ ..
라이브러리는 깃헙에서 아래의 링크의 암호화 라이브러리를 받았습니다.
https://github.com/scottyab/AESCrypt-Android
깃헙의 따르면 암호화의 방법은
String password = "password";
String message = "hello world";
try {
String encryptedMsg = AESCrypt.encrypt(password, message);
}catch (GeneralSecurityException e){
//handle error
}
복호화의 방법은
String password = "password";
String encryptedMsg = "2B22cS3UC5s35WBihLBo8w==";
try {
String messageAfterDecrypt = AESCrypt.decrypt(password, encryptedMsg);
}catch (GeneralSecurityException e){
//handle error - could be due to incorrect password or tampered encryptedMsg
}
라고 나와있습니다.
제가 직접, 로그를 찍어보면서 어떻게 진짜 암호화가 되는지 안드로이드에서 나타나는것을 보고싶은데
어떻게 해야할지 ㅜ ㅜ 도움 부탁드립니다 ㅠ