umgeher's changelog

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

age -e

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

age-d


  1. Caso voce nao tenha ainda chave ssh, esse post talvez te ajude. ↩︎

Articles from blogs I follow around the net

Burnout

It kind of crept up on me. One day, sitting at my workstation, I stopped typing, stared blankly at the screen for a few seconds, and a switch flipped in my head. On the night of New Year’s Eve, my backpack was stolen from me on the train from Berlin to Amste…

via Drew DeVault's blog 2023-05-01 00:00

Game of Trees 0.88 released!

Version 0.88 of Game of Trees has been released (and the port updated): * got 0.88; 2023-04-29 see git repository history for per-change authorship information - tog: always use alternate charset for vertical/horizontal line - several tog regression test suite …

via OpenBSD Journal 2023-04-30 10:27

Let the charge come back, thinkpad…

So, I have a thinkpad x270 which is pretty good. However, for the past few months, I was having a lot of trouble to charge it. There was a single position and mood for it work charge normally. Well, no more! Let’s face the challenge of fixing it by myself.…

via Lucas E M M. opinions 2023-04-25 22:10

Generated by openring