From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HmacSHA1 encryption

How to use labview to encrypt a string with HmacSHA1.

0 Kudos
Message 1 of 3
(943 Views)

Hi LTYHFA,

 


@LTYHFA wrote:

How to use labview to encrypt a string with HmacSHA1.


You just need to implement your algorithm using all the LabVIEW functions you have available!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(906 Views)

There's a SHA1 implementation here (https://forums.ni.com/t5/Community-Documents/SHA-1-Cryptographic-Hash-Function/ta-p/3494144)

You could use that as part of your implementation for Hmac-SHA1 if you wanted?

 

A description of the process (along with pseudo-text-code) is available on Wikipedia - it looks fairly approachable:

https://en.wikipedia.org/wiki/HMAC

 

LabVIEW has XOR and comparison functions on the Numeric palette, and so you'd probably just need to be careful with datatypes (I'm guessing the String to Byte Array node might be useful, but I haven't tried).


GCentral
0 Kudos
Message 3 of 3
(838 Views)