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

SHA2 Cryptographic Hash Algorithm for VBA and VBScript Problem

P: 1
I'm having to repost this as my original one was deleted due to not being able to ask questions in the main article.

I am using Rabbit's code from https://bytes.com/topic/access/insig...m-vba-vbscript and I have had two problems, the first was the Nz function which excel doesn't seem to have included so I had to write a small function to deal with this. Now I am getting an invalid procedure call on the line

Expand|Select|Wrap|Line Numbers
  1. words(i) = Asc(Mid(sMessage, index512 * 64 + i * 4 + 1, 1)) * mask(1) + Asc(Mid(sMessage, index512 * 64 + i * 4 + 2, 1)) * mask(2) + Asc(Mid(sMessage, index512 * 64 + i * 4 + 3, 1)) * mask(3) + Asc(Mid(sMessage, index512 * 64 + i * 4 + 4, 1))
I'm not sure why this error is being thrown. Can anyone help please
Apr 13 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

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