LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can LabVIEW encrypt files?

Can Labview use dll or other windows API to encrypt and decrypt files?
0 Kudos
Message 1 of 5
(1,531 Views)

Yes.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,522 Views)
What method can be used to encrypt?
0 Kudos
Message 3 of 5
(1,518 Views)

Almost any method.

 

LabVIEW has no builtin support für file encryption, but it can run commands on the command line, functions in DLLs or from .NET.

 

So the question is: How do you want to encrypt the files, what programs can do that, and how can those be invoked by LabVIEW.

0 Kudos
Message 4 of 5
(1,468 Views)

There are many different possibilities:

 

The first is to go with a ready made library such as: https://lvs-tools.co.uk/software/encryption-compendium-labview-library/

 

If you want to be cheap and tinker more yourself you could try this library https://lavag.org/topic/20072-advanced-encryption-standard-aes-labview-library-is-open-sourced-now/?...

 

If you want to go full blown yourself, you can either use the Call Library Node to call the shared library of your choice. This could be OpenSSL, or one of its offsprings like LibreSSL or BoringSSL, or you could try to interface to the Windows CryptoAPI, either through the Windows DLLs or through .Net. Each has its advantages: .Net is likely the easiest to tackle but still not trivial at all, unless you only want to use a few high level APIs. DLLs/shared libraries allow multi-platform use if done right but require a lot of low level knowledge about C programming to be successful in interfacing to them with the Call Library Node.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 5
(1,461 Views)