암호화 기술, 실시간 강도 측정, 로컬 저장 기능이 완비된 비밀번호 생성 웹 애플리케이션을 개발합니다.
Create a comprehensive secure password generator using HTML5, CSS3 and JavaScript with cryptographically strong randomness. Build an intuitive interface with real-time password preview. Allow customization of password length with presets for different security levels. Include toggles for character types (uppercase, lowercase, numbers, symbols) with visual indicators. Implement an advanced strength meter showing entropy bits and estimated crack time. Add a one-click copy button with confirmation and automatic clipboard clearing. Create a password vault feature with encrypted localStorage storage. Generate multiple passwords simultaneously with batch options. Maintain a password history with generation timestamps. Calculate and display entropy using standard formulas. Offer memorable password generation options (phrase-based, pattern-based). Include export functionality with encryption options for password lists.
HTML5, CSS3, JavaScript를 사용하여 암호학적으로 강력한 무작위성을 갖춘 종합 보안 비밀번호 생성기를 제작해 주세요. 실시간 비밀번호 미리보기가 가능한 직관적인 인터페이스를 구성하세요. 보안 수준별 프리셋과 비밀번호 길이 맞춤 설정 기능을 포함하세요. 문자와 숫자, 기호 조합 토글 버튼을 추가하고 엔트로피 비트 및 예상 해킹 시간이 표시되는 보안 강도 측정기를 구현해 주세요. 원클릭 복사, 암호화된 localStorage 기반 보관함, 배치 생성, 내보내기 기능까지 포함해 완성해 주세요.
출처 · prompts.chat · Secure Password Generator Tool — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
Create a comprehensive secure password generator using HTML5, CSS3 and JavaScript with cryptographically strong randomness. Build an intuitive interface with real-time password preview. Allow customization of password length with presets for different security levels. Include toggles for character types (uppercase, lowercase, numbers, symbols) with visual indicators. Implement an advanced strength meter showing entropy bits and estimated crack time. Add a one-click copy button with confirmation and automatic clipboard clearing. Create a password vault feature with encrypted localStorage storage. Generate multiple passwords simultaneously with batch options. Maintain a password history with generation timestamps. Calculate and display entropy using standard formulas. Offer memorable password generation options (phrase-based, pattern-based). Include export functionality with encryption options for password lists.
요청하신 기능(암호학적 난수, 엔트로피 계산, 클립보드 복사 등)을 포함한 웹 비밀번호 생성기 핵심 예시 코드입니다.
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>안전한 비밀번호 생성기</title>
<style>
body { font-family: sans-serif; max-width: 500px; margin: 20px auto; padding: 20px; border: 1px solid #ddd; border-radius: 8px; }
.field { margin-bottom: 10px; }
#preview { font-size: 1.2rem; font-weight: bold; width: 70%; }
</style>
</head>
<body>
<h2>비밀번호 생성기</h2>
<div class="field">
<input type="text" id="preview" readonly>
<button onclick="copyToClipboard()">복사</button>
</div>
<div class="field">
길이: <input type="number" id="length" value="16" min="8" max="64" onchange="generate()">
<label><input type="checkbox" id="upper" checked onchange="generate()"> 대문자</label>
<label><input type="checkbox" id="num" checked onchange="generate()"> 숫자</label>
<label><input type="checkbox" id="sym" checked onchange="generate()"> 특수문자</label>
</div>
<div>엔트로피: <span id="entropy">0</span> bits (<span id="crackTime">-</span>)</div>
<script>
function getCryptoRandomInt(max) {
const array = new Uint32Array(1);
crypto.getRandomValues(array);
return array[0] % max;
}
function generate() {
let charset = 'abcdefghijklmnopqrstuvwxyz';
if (upper.checked) charset += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
if (num.checked) charset += '0123456789';
if (sym.checked) charset += '!@#$%^&*()_+-=[]{}';
const len = parseInt(document.getElementById('length').value);
let pwd = '';
for (let i = 0; i < len; i++) {
pwd += charset[getCryptoRandomInt(charset.length)];
}
document.getElementById('preview').value = pwd;
// 엔트로피 계산 (E = L * log2(N))
const entropy = Math.round(len * Math.log2(charset.length));
document.getElementById('entropy').innerText = entropy;
document.getElementById('crackTime').innerText = entropy > 60 ? '안전함' : '취약함';
}
function copyToClipboard() {
const val = document.getElementById('preview').value;
navigator.clipboard.writeText(valmopick 개선안
원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.
AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님
AI 역할레슨 01 배우기 ›
원문 · 없음AI 에게 맡길 역할이 정해져 있지 않아 답의 관점 · 수준이 그때그때 달라질 수 있었습니다.
개선 · 역할을 정함Act as a Senior Frontend Developer and Security Engineer. Build a comprehensive secure pas
입력 칸레슨 05 배우기 ›
원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.
개선 · 3개[X seconds] · [JSON/CSV] · [e.g., Modern Dark Mode UI]
작업 순서레슨 07 배우기 ›
원문 · 없음작업 순서가 정해져 있지 않아 AI 가 순서를 스스로 정해야 했습니다.
개선 · 4단계
이 개선안에 쓰인 기법 — 프롬프트 클래스에서 배우기
01역할 정하기03결과 모양 정하기04지킬 조건 걸기05입력 칸으로 템플릿 만들기07작업을 단계로 나누기08스스로 검토하게 하기
원문
Create a comprehensive secure password generator using HTML5, CSS3 and JavaScript with cryptographically strong randomness. Build an intuitive interface with real-time password preview. Allow customization of password length with presets for different security levels. Include toggles for character types (uppercase, lowercase, numbers, symbols) with visual indicators. Implement an advanced strength meter showing entropy bits and estimated crack time. Add a one-click copy button with confirmation and automatic clipboard clearing. Create a password vault feature with encrypted localStorage storage. Generate multiple passwords simultaneously with batch options. Maintain a password history with generation timestamps. Calculate and display entropy using standard formulas. Offer memorable password generation options (phrase-based, pattern-based). Include export functionality with encryption options for password lists.
개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요
Act as a Senior Frontend Developer and Security Engineer. Build a comprehensive secure password generator web application using HTML5, CSS3, and vanilla JavaScript, leveraging `window.crypto.getRandomValues()` for cryptographically strong randomness. Include the following core modules: 1. **Generator Core**: Real-time password preview, customizable length with security presets, character set toggles, and memorable phrase/pattern options. 2. **Security & Analytics**: Strength meter displaying entropy bits (`log2(N^L)`) and estimated crack time. 3. **UX & Utilities**: One-click copy with visual confirmation and auto-clipboard clear after [X seconds]. Batch generation and history log with timestamps. 4. **Storage & Export**: Password vault with encrypted `localStorage` storage using Web Crypto API, plus encrypted export in [JSON/CSV] format. **Output Constraints**: - Output production-ready code in a single HTML file with clean UI design ([e.g., Modern Dark Mode UI]). - Self-Check: Verify cryptographically secure random number generation without third-party dependencies.