You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is how I got it to work in c#.
I'm trying to do that with c#, but I fail :
I've used another encoding for GetBytes , but I failed on them too.
Do you know what is wrong? (or, How do you done it with c# ?)
This is how to do it in Python:
>>> import hashlib >>> m = hashlib.md5("C:\PROGRAM FILES\METATRADER 4 TELETRADE".encode('utf-16LE')) >>> m.hexdigest()this is the function for c#:
Here's a favor for python programmers out there ;)
result = hashlib.md5("C:\Program Files (x86)\Your Installation Folder".encode('utf-16-le').upper()).hexdigest() data_folder = result.upper() # You can also get %APPDATA% using os.getenv('APPDATA') and easily construct the absolute path.One liner in git-bash
Here's what worked for me in PowerShell.
function Get-MD5Hash { param ( [string]$inputString ) $md5 = [System.Security.Cryptography.MD5]::Create() $utf16 = [System.Text.Encoding]::Unicode.GetBytes($inputString) $hash = $md5.ComputeHash($utf16) $hashString = [System.BitConverter]::ToString($hash).Replace("-", "").ToUpper() return $hashString }Any idea how to do it in Inno setup (Pascal scripting)?
Actually, with Inno setup PowerShell version above is enough.