Replies: 2 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. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @ansgarS I will try that! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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)
Beta Was this translation helpful? Give feedback.
All reactions