age
age e’ uma ferramenta simples, moderna e segura para cryptografar seus arquivos.
Ele usa chaves privadas e publicas para encryptar arquivos. Voce pode gerar uma chave “age” mesmo, ou usar a sua chave ssh1.
Install
No nosso querido OpenBSD…
pkg_add age
Encryptar com chave publica
Para encryptar um arquivo…
age -e -R ~/.ssh/id_ed25519.pub -o target-file input-file
Argumentos
- -e: argumento para encryptar
- -R: argumento para indicar o caminho da chave publica, que sera' usada para cryptar o arquivo
- -o: argumento para indicar o arquivo de output
Exemplo

Aqui voce pode ver que o conteudo do arquivo gerado (secret.txt) esta’ cryptografado.
Descryptar usando chave privada ssh
Para descryptar usando a sua chave privada…
age -d -i ~/.ssh/id_ed25519 input-file > output-file
Argumentos
- -d: argumento para descryptar
- -i: argumento para indicar a chave privada
Exemplo

Articles from blogs I follow around the net
Random relinking at boot comes to httpd(8) and smtpd(8)
Random order relinking of critical components is an OpenBSD feature specifically designed to make it harder to exploit bugs in the resulting binary. sshd(8) was the first of the network-facing daemons to get the random treatment (see this previous report).…
via OpenBSD Journal 2026-06-05 06:41The circus freaks of open source
The masterwork of Terry A. Davis is his eclectic operating system, TempleOS, which he worked on until his tragic death in 2018. In terms of technical excellence, TempleOS rates well in some respects and poorly in others. For example, it earns …
via Drew DeVault's blog 2026-06-05 00:00Issue #19
via OpenBSD Webzine 2026-05-19 13:00Generated by openring
/comments changelog@umgeher.org?Subject=Re: age
/permalink https://umgeher.org/posts/2022/01/age.html