QR code(2)
-
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 -
QR Code 생성
모듈 설치pip install qrcode또는pip3 install qrcode소스import qrcodemyQR = qrcode.make("https://www.youtube.com/watch?v=CoD63Uu_m-E")myQR.save("qrcode.png")실행python 파일명결과
2024.06.18