Is there an way to programmatically read a file from a TrueCrypt disk into memory?

后端 未结 2 1168
余生分开走
余生分开走 2021-01-31 12:40

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

相关标签:
2条回答
  • 2021-01-31 12:56

    TrueResize includes an open-source C# TrueCrypt library that will allow you to read the encrypted volume (without having to mount it), an additional library includes NTFS support.

    0 讨论(0)
  • 2021-01-31 13:04

    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();
            }
        }
    }
    
    0 讨论(0)
提交回复
热议问题