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???
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?
since every file is just a bunch of zeros and ones ... yes
Does anyone have an example?
RTSLVU had an example for the encoding,
to reverse that, you just have to do the same with F^-1 for the decoding.
@Pepe727 wrote:
Does anyone have an example?
The "vague answer" above is actually a good starting point! 🙂
@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...
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/