By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,611 Members | 1,712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,611 IT Pros & Developers. It's quick & easy.

How to Use SHA2 Algorithm Function

P: 1
** NB **
This question was posted in the article SHA2 Cryptographic Hash Algorithm for VBA and VBScript and relates to that.

Im really sorry, but can someone explain how te use the SHA function? I wan't to store passwords using SHA, but when i try to use: SHA(me.password) i get a type mismatch error.
Nov 8 '11 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,421
You're probably passing the result into a field. But the result of the function is a 32 item array of integers. You can't store an array in a field. You will have to format the array into the format you want. You can convert it to a 32 byte string or you can use a hexadecimal representation or however you want, it's up to you.
Nov 8 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.