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
j2k25 - OpenBSD Hackathon Japan 2025 (rsadowski@)
Fresh from the just concluded j2k25 hackathon in Nara, Japan, Rafael Sadowski (rsadowski@) has published his report on his blog: Week 2: The j2k25 Japan Hackathon We arrived in Nara during the late afternoon. After checking into our hotel, goda@, my wife and I…
via OpenBSD Journal 2025-06-01 10:42How to trigger a command on Linux when disconnected from power
# Introduction After thinking about BusKill product that triggers a command once the USB cord disconnects, I have been thinking at a simple alternative. => https://www.buskill.in BusKill official project website When using a laptop connected to power …
via Solene'% 2025-05-31 00:00Improved (maybe) indenting on save
I realized that sometimes identing the whole buffer might not be the desired output. That because if the file is on different identation, your git commit might be hard to follow. Because of that I studied a bit emacs lisp and came up with similar idea. On …
via Lucas E M M. opinions 2025-05-30 11:30Generated by openring
/comments ~umgeher/changelog@lists.sr.ht?Subject=Re: age
/permalink https://umgeher.org/posts/2022/01/age.html