Repository navigation
Replies: 3 comments
|
I think I was able to write a md5 hash function in a JS resolver. First you need to have a mapping table for char codes in one file (please note that I am using TypeScript that is parsed into JS before it is deployed as JS resolver): Then you need to have a replacement for the bitwise not operator and avoid any simple for loops: I tested it with the evaluateCode function from AWS and compared against the crypto library md5 function and couldnt find any issues until now. |
0 replies
|
Thanks for the tip @ansgarS ! A few months ago thanks to the IA I could manage to make the hash function and I could remove an unneeded or unnecessary lambda. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm using the Flickr API and needs HMAC-SHA1 to sign requests when dealing with user specific data. Right to make a simple call I have to invoke a lambda function. If we had hash functions I could generate the payload from the JS resolver. In a previous step I could get the SSM parameters for each user and then properly generate the hash without having to invoke a single lambda function.
I mentioned here but got lost #147 (comment)
All reactions