숫자 6자리 임시 비밀번호 만들기
import java.security.SecureRandom;public class TemporaryPasswordGenerator { public static String generateTempPassword() { SecureRandom secureRandom = new SecureRandom(); // Generate a random number between 100000 and 999999 int tempPassword = 100000 + secureRandom.nextInt(900000); return String.valueOf(tempPassword); } public static void main(String[] args) {..
2024.11.19