我需要从已卸载的TrueCrypt磁盘将文件加载到内存中。有什么办法以编程方式执行此操作吗? TrueCrypt是否提供API?
我认为最好的尝试方式是装入卷(当然,提示用户输入密码),打开文件,然后卸载卷。有没有办法自动完成所有操作?
我在Windows Vista上。我有C#,Python和Perl随时可用。
您是否不能使用System.Diagnostics.Process中的true crypt command line?
using System;
using System.Diagnostics;
namespace Test {
class TrueCrypeStart
{
static void Main(string[] args)
{
string password = getPassword(...);
Process tc= new Process();
tc.StartInfo.FileName = "TrueCrypt.exe";
tc.StartInfo.Arguments = string.Format("/v \"{0}\" /p \"{1}\" /q", ...mount info ..., password); // for quiet!
tc.Start();
}
}
}
[TrueResize包括一个开放源代码的C#TrueCrypt库,该库使您可以读取加密的卷(而无需安装它),另外一个库包括NTFS支持。