Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Linux 系统上,您将如何构建程序(C/C++/Python/Java 等)以确保一段数据保留在易失性内存中并且永远不会缓存到磁盘或交换?
我特别关注安全应用程序,您希望确保手动输入的密码或加密密钥在系统断电时被遗忘且不可恢复,但仍可访问。
看看mlock(2)/munlock(2)