JAVA-044 / 기초
java.util.Random으로 토큰 생성
왜 문제가 될까요?
시드 예측으로 리셋 토큰이 추측된다.
이렇게 수정하세요
java
byte[] b = new byte[32]; new SecureRandom().nextBytes(b);
String token = Base64.getUrlEncoder().withoutPadding().encodeToString(b);