News for hackers. Stuff that matters.
Re:Ask HN: Is there a portable encryption file format? by b33f on Thursday March 24, 2022 @10:16AM (#30790086)
In MacOS or Linux, you can use openssl on the CLI easily.

$ echo -n "private-message" | openssl enc -e -aes-256-cbc -a -salt enter aes-256-cbc encryption password: Verifying - enter aes-256-cbc encryption password:

Then to decrypt echo 'U2Fsxxxxxxxxxx' | openssl aes-256-cbc -a -d -salt

Re:Ask HN: Is there a portable encryption file format? by binwiederhier on Thursday March 24, 2022 @10:25AM (#30790217)
I think the CLI is not the problem. More that there is a maintained implementation in Ruby, Rust, Go, JS, PHP, .... You get the idea.

I suppose openssl is supported in all of them, but it only provides primitives. I still have to manually define a file format to store the salt and such.