03-21-2021 10:10 PM
How to use labview to encrypt a string with HmacSHA1.
03-22-2021 02:26 AM
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!
03-24-2021 04:55 AM
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).