Spring boot Security 2FA OTP 적용
OTP 등록Google 또는 MS Authenticator에 OTP 계정 추가비밀키 생성public class Base32 { private static final int SECRET_SIZE = 10; private static final SecureRandom RANDOM = new SecureRandom(); public static String random() { // Allocating the buffer byte[] buffer = new byte[SECRET_SIZE]; // Filling the buffer with random numbers. RANDOM.nextBytes(buffer); // Getting ..
2024.08.19