TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Small, open source, C based, file encryption?

2 pointsby grungegunalmost 4 years ago
I'm using cryptomator for file encryption right now. I'd like to use a small, portable, C-based (for familiarity and guaranteed future support), open source, command-line/terminal program to encrypt txt files so I can read it and potentially make fixes if it ever stops being supported. What should I use?

1 comment

LinuxBenderalmost 4 years ago
Sortof small, portable in compilation sense, one could use GPG or OpenSSL or one of the variants. [1] OpenSSL and GPG should be around for some time. You can also keep the source code [2] around of any version in the event that they break backwards compatibility with the method you used to encrypt your files such as deprecating a protocol or individual cipher.<p><pre><code> ls -alh bin&#x2F;openssl lib&#x2F;libssl.so.1.1 lib&#x2F;libcrypto.so.1.1 -r-xr-xr-t 1 root root 616K Jul 26 17:39 bin&#x2F;openssl -r-xr-xr-t 1 root root 2.4M Jul 26 17:38 lib&#x2F;libcrypto.so.1.1 -r-xr-xr-t 1 root root 552K Jul 26 17:38 lib&#x2F;libssl.so.1.1 </code></pre> [1] - <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;16056135&#x2F;how-to-use-openssl-to-encrypt-decrypt-files" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;16056135&#x2F;how-to-use-open...</a><p>[2] - <a href="https:&#x2F;&#x2F;ftp.openssl.org&#x2F;snapshot&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ftp.openssl.org&#x2F;snapshot&#x2F;</a> or rsync:&#x2F;&#x2F;ftp.openssl.org::openssl-ftp&#x2F;snapshot&#x2F;