06-21-2018 05:21 AM
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
06-11-2018 01:51 AM
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
06-11-2018 03:15 PM
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,
06-21-2018 05:20 AM
Sure, Mike.
Thanks,
Nikitha
06-21-2018 05:53 AM
What kind of file, and what kind of password protection?
06-21-2018 06:58 AM - edited 06-21-2018 06:59 AM
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.