Contents

Encrypt and Decrypt Messages Using the Rot64 Unofficial Caesar Cipher Algorithm

Nieoficjalna implementacja algorytmu Cezara

Contents

Program w języku GOlang, który koduje i dekoduje wiadomości nieoficjalnym algorytmem Cezara - ROT64

Wersja I:

Test przycisku:

function translatePost(lang) { let postContent = document.getElementById(‘post-content’).innerText; // Pobierz treść posta let apiKey = ‘YOUR_GOOGLE_TRANSLATE_API_KEY’; // Wstaw swój klucz API Google Translate

// Wywołaj Google Translate API
fetch(`https://translation.googleapis.com/language/translate/v2?key=${apiKey}&source=auto&target=${lang}&q=${encodeURIComponent(postContent)}`)
.then(response => response.json())
.then(data => {
    let translatedContent = data.data.translations[0].translatedText;
    document.getElementById('post-content').innerText = translatedContent; // Wstaw przetłumaczoną treść posta
})
.catch(error => {
    console.error('Error:', error);
});

}