# Simétrico

## Descripción

Los cifrados de clave simétrica usan la misma clave para cifrar el texto en claro (texto sin cifrar) en texto cifrado y para descifrar el texto cifrado de nuevo en texto en claro.&#x20;

La clave, en la práctica, representa un secreto compartido entre dos o más partes que puede ser utilizada para mantener un vínculo de información privada.&#x20;

El requisito de que ambas partes tengan acceso a la clave es uno de los principales inconvenientes del cifrado de clave simétrica. Si esta clave se hiciera pública, cualquiera que la tuviera podría descifrar la información que se intercambió entre las partes. Esto hace que el cifrado de clave simétrica dependa en gran parte de mantener continuamente en secreto la clave.

## Blowfish

```shell
# Encriptar / cifrar
echo "<text>" > blowfish.txt
gpg -c --output blowfish.gpg --cipher-algo blowfish blowfish.txt

# Desencriptar / descifrar
gpg --decrypt blowfish.gpg
```

## Advanced Encryption Standard (AES)

```shell
# Encriptar / cifrar
echo "<text>" > aes256.txt
gpg -c --output aes256.gpg --cipher-algo aes256 aes256.txt

# Desencriptar / descifrar
gpg --decrypt aes256.gpg
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cryptography.mrw0l05zyn.cl/encriptacion-cifrado/simetrico.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
