10-24-2017 09:05 AM
Hey! I would like to read any type of file and read them as binary (Obtain an 1d array of U8 or an 2d array 8bits x sizearray) and when I have manipulated it, rebuild the original file.
Solved! Go to Solution.
10-24-2017 09:16 AM
Hi Pepe,
I would like to read any type of file and read them as binary (Obtain an 1d array of U8 or an 2d array 8bits x sizearray)
Use ReadBinaryFile function…
when I have manipulated it, rebuild the original file.
Why do you want to manipulate anything, when you need the original file afterwards???
10-24-2017 09:17 AM - edited 10-24-2017 09:19 AM
Well such a vague question demands an equally vague answer.
10-24-2017 09:49 AM
I wanna encrypt any file, for example a vi or a video or a simple .txt, so, when this file encrypted is decrypted...
The function "read binary file" is able to read any type of file?
10-24-2017 10:01 AM
since every file is just a bunch of zeros and ones ... yes
10-24-2017 10:05 AM
Does anyone have an example?
10-24-2017 10:17 AM
RTSLVU had an example for the encoding,
to reverse that, you just have to do the same with F^-1 for the decoding.
10-24-2017 10:18 AM
@Pepe727 wrote:
Does anyone have an example?
The "vague answer" above is actually a good starting point! 🙂
10-24-2017 10:21 AM
@Pepe727 wrote:
I wanna encrypt any file, for example a vi or a video or a simple .txt, so, when this file encrypted is decrypted...
The function "read binary file" is able to read any type of file?
See my suggestion here https://forums.ni.com/t5/LabVIEW/Can-you-give-me-some-suggestions-for-encryption-decryption/m-p/2529...
10-24-2017 10:36 AM
if you want to have "secure" encryption, use an external library/program that does that for you, like openssl, and not build it yourself.
you could run commandline call through the system-exec-vi.
https://zone.ni.com/reference/en-XX/help/371361J-01/glang/system_exec/