TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

2 点作者 grungegun将近 4 年前
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

LinuxBender将近 4 年前
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;