03-19-2021 05:32 AM
@xingdx wrote:
hello
i want to calculate the sha1 by powershell in vi,how can i get the feedback; i have achieved it by cmd,but the time by this method is too long;
thanks
Why use the powershell?
.NET can be used directly, and you'll get all the feedback you want. The data size also won't be a problem anymore, because you can stream your data into the SHA1 method.
Assuming .NET has SHA1 methods, but I'm pretty sure it does.
03-22-2021 03:32 AM
yes,i am try to find some .Net constructor to calculate the SHA1 or other HASH,but i am fail.
Could you give me some help?
03-22-2021 03:42 AM
03-22-2021 03:59 AM
thank you for your help
03-22-2021 04:22 PM - edited 03-22-2021 04:22 PM
wiebe@CARYA wrote:
SHA1 Class (System.Security.Cryptography) | Microsoft Docs
I had to use this one recently - this bit me:
if you want to calculate an sha1 hash, from within LabView, you need to start with "System.Core" not "System.Security.Cryptography"
03-22-2021 07:33 PM
yes
when i used the System.
i am try to solve it in some method ,but up to now ,it is failed;
thanks
03-23-2021 02:09 AM
03-23-2021 03:34 AM
@alexderjuengere wrote:
wiebe@CARYA wrote:
SHA1 Class (System.Security.Cryptography) | Microsoft Docs
I had to use this one recently - this bit me:
if you want to calculate an sha1 hash, from within LabView, you need to start with "System.Core" not "System.Security.Cryptography"
Well, obviously 😉.
In the msdn, change the Version to your .NET Framework, then the documentation will mention the assembly:
03-23-2021 05:35 AM
@GerdW wrote:
Hi Alex,
the example is nice, but you can replace the FOR loop by a simple ConcatString operation with just one input…
Kudos to you!