Get Extraction Password
Generate your unique extraction password for protected archives. Enter your encryption key below to get the password.
Get Extraction Password for Neat File Extractor
Paste your encryption key below to generate the extraction password:
`; resultDiv.html(safelinkHtml); } function displayPassword(password, expiresTimestamp, serverTime) { const resultDiv = $('#extraction-password-result'); const passwordHtml = `
Your extraction password is ready:
`; resultDiv.html(passwordHtml); startCountdown(expiresTimestamp, serverTime); } function startCountdown(expiresTimestamp, serverTime) { if (countdownTimer) { clearInterval(countdownTimer); } const countdownElement = $('#countdown'); const timeOffset = serverTime - new Date().getTime(); countdownTimer = setInterval(function() { const now = new Date().getTime() + timeOffset; const distance = expiresTimestamp - now; if (distance < 0) { clearInterval(countdownTimer); countdownElement.text('EXPIRED'); $('#generated-password-field').val('EXPIRED').css('color', 'red'); $('#copy-password-btn').prop('disabled', true); return; } const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); const seconds = Math.floor((distance % (1000 * 60)) / 1000); countdownElement.text(minutes + ':' + (seconds < 10 ? '0' : '') + seconds); }, 1000); } $(document).on('click', '#copy-password-btn', function() { const passwordField = document.getElementById('generated-password-field'); passwordField.select(); document.execCommand('copy'); $(this).text('Copied!'); setTimeout(() => $(this).text('Copy'), 2000); }); $('#generate-extraction-password-btn').on('click', function(e) { e.preventDefault(); const btn = $(this); const resultDiv = $('#extraction-password-result'); const encryptionKey = $('#encryption-key-input').val().toUpperCase(); const applicationSlug = $('#extraction-application').val(); if (!encryptionKey) { resultDiv.html('
'); return; } btn.prop('disabled', true).text('Generating...'); resultDiv.html(''); // SECURITY FIX: Always use local AJAX - server handles everything securely $.ajax({ url: 'https://tsmtoolpro.com/wp-admin/admin-ajax.php', method: 'POST', data: { action: 'generate_extraction_password_secure', nonce: 'b4cb83b88c', encryption_key: encryptionKey, application: applicationSlug }, success: function(response) { if (response.success) { const data = response.data; if (data.safelink_enabled && data.safelink_url) { displaySafelink(data.safelink_url); } else { displayPassword(data.password, data.expires_timestamp, data.current_time); } } else { resultDiv.html(`
`); } }, error: function() { resultDiv.html('
'); }, complete: function() { btn.prop('disabled', false).text('Generate Extraction Password'); } }); }); });