truecrypt

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

纵然是瞬间 提交于 2019-12-03 03:21:34
问题 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? I am on Windows Vista. I have C#, Python, and Perl readily available. 回答1: Can you not use the true crypt command line from say System

C#磁盘或U盘加密(创建加密区)

匿名 (未验证) 提交于 2019-12-03 00:18:01
需要下载的DLL和驱动 介于公司项目为C#项目进行的加密开发,用前几张文章所学到的TrueCrypt项目开启4个重要的入口点: 创建加密卷 加载加密卷 卸载加密卷 修改密码 加载驱动 安装驱动 using Microsoft.Win32; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices; using System.ServiceProcess; using System.Text; namespace ICT.NetHandleLibrary { public class TrueCryptHelper { Logger<TrueCryptHelper> log = new Logger<TrueCryptHelper>(); [DllImport( "TrueCryptFormat.dll" , EntryPoint = "FormatVolumeC" , CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] private extern static int FormatVolumeC ( string

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

谁都会走 提交于 2019-12-02 16:52:22
I need to load a file from an umounted TrueCrypt disk into memory. Is there any way to do this programatically? 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? I am on Windows Vista. I have C#, Python, and Perl readily available. Preet Sangha Can you not use the true crypt command line from say System.Diagnostics.Process? using System; using System.Diagnostics; namespace Test { class TrueCrypeStart {

See command line arguments being passed to a program

时光总嘲笑我的痴心妄想 提交于 2019-12-02 14:46:14
问题 You may skip this part I am using a batch file that I have in my thumb drive in order to mount a true crypt volume. I created that batch file with the help of this link. on that batch file I have the username and password that I pass as arguments to trueCrypt.exe in order for it to be mounted. Anyways so my question is: will it be possible to see the arguments being passed to a program from a third party process? In other words, will it be possible to see the arguments being passed to this

Detect when a new virtual drive is created

故事扮演 提交于 2019-12-02 05:28:30
How can I know what trueCrypt volumes are mounted on a computer? Note I already know what files can be mounted. In other words the only volumes that can be mounted are: C:\Vol1.tc , C:\Vol2.tc and C:\Vol3.tc . How do I know when a volume is dismounted? I manage to do that by using the .net class FileSystemWatcher . Every time I dismount a volume I notice that the event FileSystemWatcher.Changed fires. How do I know when a volume is mounted? Here is where I am having trouble! Do I constantly query the drives and see if a drive exists. That sounds like a bad idea because if someone plugs in a

See command line arguments being passed to a program

北城余情 提交于 2019-12-02 03:01:29
You may skip this part I am using a batch file that I have in my thumb drive in order to mount a true crypt volume. I created that batch file with the help of this link . on that batch file I have the username and password that I pass as arguments to trueCrypt.exe in order for it to be mounted. Anyways so my question is: will it be possible to see the arguments being passed to a program from a third party process? In other words, will it be possible to see the arguments being passed to this program: using System; using System.Reflection; using System.Diagnostics; class Program { static string

Determine the Drive Letter of a mounted TrueCrypt volume

 ̄綄美尐妖づ 提交于 2019-12-01 04:11:21
After a TrueCrypt container has been mounted to a drive letter, is it possible to determine in a batch file which container the drive letter was mounted from, or which drive letter the container was mounted to? In a batch file, I want to mount a specified TrueCrypt container to a specified drive letter. TrueCrypt errors if the container is already mounted or if the drive letter isn't available, so I want to run TrueCrypt only if the specified container hasn't already been mounted to the specified drive letter, that is, only if the action hasn't been completed already. Any suggestions would be

Copy file from TrueCrypt volume to clipboard?

橙三吉。 提交于 2019-11-29 20:06:41
问题 I use this code to copy files to Clipboard: IDataObject data = new DataObject(); data.SetData(DataFormats.FileDrop, new string[] {@"X:\test.doc"}); MemoryStream memo = new MemoryStream(4); byte[] bytes = new byte[] { (byte)(5), 0, 0, 0 }; memo.Write(bytes, 0, bytes.Length); data.SetData("Preferred DropEffect", memo); Clipboard.SetDataObject(data); Unfortunately, this doesn't work if the disk is a TrueCrypt mounted volume. What is the way to do this on a TrueCrypt volume? 回答1: Unfortunately, I