wsse-js icon indicating copy to clipboard operation
wsse-js copied to clipboard

Outdate Sha1 library

Open MacRicow opened this issue 3 years ago • 1 comments

Hi,

I know that the code was released a long time ago and I'm not a specialist in encryption, but in case some people would look for a solution to implement an automated X-WSSE header into Postman, I thought that it was a good idea to make a feedback.

Using this script failed on my side. In fact, it appeared that the b64_sha1 function was not giving the expected result and I was getting invalid credentials into Postman.

If you want to use this code, you'd rather find another sha1 javascript implementation to replace the 2.1 function from Paul Johnston which seems to be outdated (2000-2002), replace the b64_sha1(string) by encode64(sha1(string)) and the script should work as expected.

Best regards.

MacRicow avatar Sep 15 '21 14:09 MacRicow

@MacRicow do you happen to have that sha1 javascript implementation. I've tried a couple but still getting invalid credentials.

bolix avatar May 03 '23 22:05 bolix