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
Building native packages is complicated
Especially if you want a UX as good as Docker images give you.
via Xe Iaso's blog 2025-03-31 00:00OpenBSD -current has moved to version 7.7
The OpenBSD 7.7 release cycle is entering its final phases… With the following commit, Theo de Raadt (deraadt@) moved -current to version 7.7 (dropping the "-beta"): CVSROOT: /cvs Module name: src Changes by: deraadt@cvs.openbsd.org 2025/03/30 14:43:36 Modified…
via OpenBSD Journal 2025-03-30 23:00Using linkhut to signal-boost my bookmarks
It must have been at least a year ago that I first noticed linkhut, and its flagship instance at ln.ht, appear on SourceHut, where it immediately caught my attention for its good taste in inspirations. Once upon a time, I had a Pinboard account, which is a s…
via Drew DeVault's blog 2025-03-27 00:00Generated by openring
/comments ~umgeher/changelog@lists.sr.ht?Subject=Re: age
/permalink https://umgeher.org/posts/2022/01/age.html