简体   繁体   English

如何将Net Core应用程序或其中的某些数据设置为不可交换?

[英]How to set Net Core application or some data inside as non swappable?

I need to store some secure files only in memory without saving on HDD. 我只需要在内存中存储一​​些安全文件,而无需保存在HDD上。 If I have files as simple byte array it could be saved in pagefile.sys on Windows or swap in Linux. 如果我有简单字节数组形式的文件,则可以将其保存在Windows上的pagefile.sys中或Linux中的swap中。

Even if I encrypt data in memory, that still can get on the hard drive. 即使我对内存中的数据进行加密,也仍然可以进入硬盘驱动器。 I don't need security in memory, but I have to be sure that when I turn off my server, nothing is saved on it. 我不需要内存安全性,但是必须确保关闭服务器电源后,什么也没有保存。

Are there any tools to do this quickly and easily? 是否有任何工具可以快速轻松地做到这一点?

There is no way to avoid swapping out programmatically. 没有办法避免以编程方式换出。 You can only disable swapping on OS-level, but that will have unpredictable effects. 您只能在OS级别上禁用交换,但这将产生不可预测的影响。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在.NET CORE 2应用程序中设置绕过列表? - How to set the bypasslist in .NET CORE 2 Application? 如何在登录 .net core 3.1 Web 应用程序时在 startup.cs 中设置全局数据? - How to set global data in startup.cs upon logging in .net core 3.1 web application? 如何在创建ADO.NET模型时在应用程序代码中设置敏感数据?某些标记a - How to set your sensitive data in the application code when creating ADO.NET Model?d some tag a 如何在控制台应用程序 (.net Core) 中将数据写入 appsettings.json? - How to write data to appsettings.json in a console application (.net Core)? 如何使用 post 将数据传递到另一个 .Net Core Web 应用程序 - How to pass data to another .Net Core web application using post 如何使用旧的身份验证数据向.Net Core 2应用程序添加身份验证? - How to add authentication to a .Net Core 2 application using old authentication data? 动态可交换数据访问层 - Dynamic swappable Data Access Layer ASP.NET Core 5 Web API 启动时的一些动作如何设置[NonAction]属性 - How to set [NonAction] attribute on some actions of ASP.NET Core 5 Web API in startup 如何限制.net核心中的某些IP - How to restrict some IP in .net core 如何在 ASP.NET Core 应用程序中使用 Razor 类库 - How to use Razor class library inside a ASP.NET Core application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM