gpt4 book ai didi

c# - 有没有办法以编程方式将文件从 TrueCrypt 磁盘读入内存?

转载 作者:太空狗 更新时间:2023-10-29 18:28:27 24 4
gpt4 key购买 nike

我需要将文件从卸载的 TrueCrypt 磁盘加载到内存中。有没有办法以编程方式执行此操作? TrueCrypt 是否提供 API?

我认为最好的尝试方式是挂载卷(当然会提示用户输入密码),打开文件,然后卸载卷。有没有办法自动完成这一切?

我使用的是 Windows Vista。我有现成的 C#、Python 和 Perl。

最佳答案

你能不使用true crypt command line吗?来自 System.Diagnostics.Process?

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();
}
}
}

关于c# - 有没有办法以编程方式将文件从 TrueCrypt 磁盘读入内存?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1315677/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com