Creating an SHA1 Hash in a text-field from an imput text-field
jklaver
Member Posts: 4
I have to convert i.e. 'QEX\JohnKwachtwoord' to 'abb4a8f6dbebdeb71f0f63f0cba7b8ee9e6cc67b'
I tried to use System.Security.Cryptography.HashAlgorithm.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
but that gives me an Uppercase text like: 1CEE2F310C53CCA7CA43527AC59CE23D29A088F2
Does anyone have a solution?
I tried to use System.Security.Cryptography.HashAlgorithm.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
but that gives me an Uppercase text like: 1CEE2F310C53CCA7CA43527AC59CE23D29A088F2
Does anyone have a solution?
0
Answers
-
LOWERCASE(..) ?? [and: make sure that your text-field is not actually a Code field
]
Jan Veenendaal0 -
No Jan,
I'm using a text field for my result.
The result is completely different from the wanted result so LOWERCASE won't do the job.0 -
'QEX\JohnKwachtwoord' should result in a hex value of '8569db1611ef4f37d4b2f0eebeab42a17fc87751' and base64 'hWnbFhHvTzfUsvDuvqtCoX/Id1E='. If you get a different result, you're not hashing properly.
Try posting your exacy c/al code here.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions