Test Page

Google Drive ID Encryptor
Google Drive ID Encryptor
AES Encrypted Result:
Hasil enkripsi akan muncul di sini...
Base64 Encoded Result:
Hasil encoding akan muncul di sini...
Cara Penggunaan di HTML
<!-- Gunakan encrypted ID seperti ini -->
<a href="#" class="download-btn" data-id="ENCRYPTED_ID_HERE">Download</a>

<script>
// Fungsi decrypt (harus sama dengan secret key)
function decryptId(encrypted) {
    return CryptoJS.AES.decrypt(encrypted, "YourSecretKey").toString(CryptoJS.enc.Utf8);
}

document.querySelector('.download-btn').addEventListener('click', function() {
    const fileId = decryptId(this.getAttribute('data-id'));
    window.location.href = `https://drive.google.com/uc?export=download&id=${fileId}`;
});
</script>