有没有办法以编程方式将TrueCrypt磁盘中的文件读取到内存中? [英] Is there an way to programmatically read a file from a TrueCrypt disk into memory?

查看:110
本文介绍了有没有办法以编程方式将TrueCrypt磁盘中的文件读取到内存中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I need to load a file from an umounted TrueCrypt disk into memory. Is there any way to do this programmatically? Does TrueCrypt offer an API?

我认为最好的尝试方式是装入卷(当然,提示用户输入密码),打开文件然后卸载卷.有没有办法自动完成所有操作?

The way I believe is best for attempting this would be to mount the volume (prompting the user for a password, of course), open the file, and then unmount the volume. Is there a way to do this all automatically?

我在Windows Vista上.我有C#,Python和Perl随时可用.

I am on Windows Vista. I have C#, Python, and Perl readily available.

推荐答案

您不能使用

Can you not use the true crypt command line from say 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();
        }
    }
}

这篇关于有没有办法以编程方式将TrueCrypt磁盘中的文件读取到内存中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆