DevTulz Online

Textkryptering

All kryptering sker lokalt i din webblÀsare med Web Crypto API. Dina data lÀmnar aldrig din enhet.

Vad Àr textkryptering?

Textkryptering Àr processen att konvertera lÀsbar text (klartext) till ett olÀsbart format (chiffertext) för att skydda dess konfidentialitet. Endast personer med rÀtt dekrypteringsnyckel kan lÀsa det ursprungliga meddelandet.

Supported Algorithms:

Symmetric Encryption (AES):

  • AES-GCM (Recommended): Provides authenticated encryption with associated data (AEAD). Most secure for general use.
  • AES-CBC: Traditional block cipher mode. Requires padding.
  • AES-CTR: Counter mode. Converts block cipher to stream cipher.

Asymmetric Encryption (RSA):

  • RSA-OAEP: Uses public key for encryption. Limited to ~190 characters due to key size constraints. Use for encrypting small data or symmetric keys.

Output Format:

For AES algorithms: JSON with base64-encoded components

{"iv": "base64_encoded_iv", "data": "base64_encoded_ciphertext"}

For RSA: Base64-encoded ciphertext only (no IV needed)

base64_encoded_ciphertext

This format is compatible with most encryption/decryption tools and libraries.

Hur anvÀnder man textkrypteringsverktyget

  1. Ange texten du vill kryptera i inmatningsrutan.

  2. VĂ€lj krypteringsalgoritm (AES eller RSA).

  3. Ange en krypteringsnyckel eller klicka pÄ "Generera nyckel" för att skapa en.

  4. Klicka pÄ "Kryptera" för att sÀkra din text.

  5. Kopiera den krypterade texten och dela den sÀkert.

  6. AnvÀnd ögoniko­nen för att visa/dölja den hemliga nyckeln.

Additional Tips:

  • For AES: The secret key is auto-generated or you can provide your own (minimum 32 characters)
  • For RSA: You need a public key in PEM format. Generate one using the Key Generator tool or OpenSSL
  • RSA limitations: Can only encrypt short text (~190 characters). For longer texts, use AES algorithms
  • Output encoding: Base64 is used for compatibility with other encryption tools and libraries

SĂ€kerhetsnoter

Det hÀr verktyget anvÀnder webblÀsarens native Web Crypto API för stark kryptering. HÄll alltid den hemliga nyckeln sÀker.

Important Notes:

  • All encryption happens locally in your browser using the Web Crypto API
  • The IV (Initialization Vector) is automatically generated for each encryption and must be saved with the ciphertext
  • For RSA encryption, you encrypt with a public key; decryption requires the corresponding private key
  • Store your secret keys securely - if lost, encrypted data cannot be recovered
  • Base64 encoding makes the output portable and compatible with most tools and programming languages

Kryptera text sÀkert med AES-256-GCM direkt i webblÀsaren. Ingen data skickas till servrar.

Behöver du dekryptera text? Prova vĂ„rt textdekrypteringsverktyg →

Ofta stÀllda frÄgor

Är det sĂ€kert att avkoda kĂ€nslig data hĂ€r? Ja. All avkodning sker i din webblĂ€sare med hjĂ€lp av JavaScript. Ingen data skickas till nĂ„gon server, sĂ„ dina kodade strĂ€ngar förblir helt privata.

Vad Àr skillnaden mellan Base64 och URL-sÀker Base64? Standard Base64 anvÀnder + och / tecken, vilka Àr specialtecken i URL:er. URL-sÀker Base64 ersÀtter dem med - och _ sÄ att strÀngen kan anvÀndas sÀkert i URL:er och filnamn utan procent-kodning.

Varför ser min avkodade utdata ut som nonsens? Om originaldata var binÀr (sÄsom en bild, PDF eller komprimerad fil), kommer den avkodade utdata inte att vara lÀsbar text. I sÄ fall representerar Base64-strÀngen en binÀr fil, inte en textstrÀng.

Är Base64 en form av kryptering? Nej. Base64 Ă€r ett kodningsschema, inte kryptering. Vem som helst kan avkoda en Base64-strĂ€ng utan en nyckel. Det bör aldrig anvĂ€ndas för att skydda kĂ€nslig data - anvĂ€nd korrekt kryptering för det.

Keywords: textkryptering, AES-256, kryptera meddelande, sÀker kryptering