LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check if a file is password protected or not using LabVIEW

Can I detect if a file is password protected or not using LabVIEW? If yes can you  please add on how to do it.

 

Thanks,

Nikitha

0 Kudos
Message 1 of 6
(2,677 Views)

Can I detect if a file is password protected or not using LabVIEW? If yes can you  please add on how to do it.

 

Thanks,

Nikitha

0 Kudos
Message 2 of 6
(2,685 Views)

Hey Nikitha,

 

Because this seems to be a new question on this particular forum, making a new post will maximize the number of people that see it and therefore give you the best chance of getting a quality response. Please consider copying your question over into a new post here: https://forums.ni.com/t5/LabVIEW/bd-p/170

 

Regards,

Mike W.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 6
(2,675 Views)

Sure, Mike.

 

Thanks,

Nikitha

0 Kudos
Message 4 of 6
(2,662 Views)

What kind of file, and what kind of password protection?

0 Kudos
Message 5 of 6
(2,663 Views)

Yes please, describe in more detail what you mean. There are many ways to protect files but not many as far as I know that are directly built into the file system of the OS.

 

You can password protect ZIP files for instance, but that is not recognizable by the OS itself, only by a software which specifically can open ZIP files.You can create encrypted volumes through use of the Windows Encrypted File System (EFS) feature that is build on top of NTFS. Reading the file status with the Windows API GetFileAttributesA() and checking the result to be not equal to 0xFFFFFFFF and containing the flag  FILE_ATTRIBUTE_ENCRYPTED (0x4000) will tell you if a file or directory is encrypted.

 

If you use other software like Veracrypt or its predecessor TrueCrypt (which you really shouldn't use anymore as it is not maintained and patched anymore) then things are more complicated as Windows does know nothing about this type of encryption. 

Rolf Kalbermatter
My Blog
0 Kudos
Message 6 of 6
(2,635 Views)