https://danielmiessler.com/study/encoding-encryption-hashing-obfuscation/
암호화 관련 용어 개념
인코딩/디코딩
해싱
md5, sha
brute-force attack
https://danielmiessler.com/study/encoding-encryption-hashing-obfuscation/
암호화 관련 용어 개념
인코딩/디코딩
해싱
md5, sha
brute-force attack
비밀번호 저장에 특화된 암호화로 매 실행시마다 값이 변경된다.
글자수 제한이 있는것이 특징
자세한건 검색으로
테스트코드 첨부
public static void main(String[] args){ BCryptPasswordEncoder encoder1 = new BCryptPasswordEncoder(); String seed1 = "012345678901234567890123456789"; String result1 = encoder1.encode(seed1); System.out.println(result1); String seed2 = "01234567890123456789012345678901234567890123456789012345678901234567890"; String result2 = encoder1.encode(seed2); System.out.println(result2); String seed3 = "012345678901234567890123456789012345678901234567890123456789012345678901";//최대글자수 String result3 = encoder1.encode(seed3); String seed4 = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789"; System.out.println(result3); System.out.println(); System.out.println(encoder1.matches(result1, seed1)); System.out.println(encoder1.matches(seed1, result1)); System.out.println(encoder1.matches(seed2, result2)); System.out.println(encoder1.matches(seed3, result3)); System.out.println(encoder1.matches(seed4, result3)); }