postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.83k stars 839 forks source link

Postman freezes at CryptoJS execution of PBKDF2 #4688

Open ghost opened 6 years ago

ghost commented 6 years ago

Describe the bug When calling the function CryptoJS.PBKDF2(x, y, { keySize: 512/8, iterations: 100000 }); where x ="123456789" and y="333230323942323745443434413638413036363635343734363638323544423535454530413644383346364542373236364135303636423536363536354631423630323232454343" is frozen Postman. The same function executed in nodejs takes about 20 seconds to execute.

To Reproduce Steps to reproduce the behavior:

  1. Go to Pre-request Script
  2. Insert the function and the variables
  3. Send the request
  4. Infinity Loading

Expected behavior I would expect that after a reasonable time the result of the function will be available Or that an error message

App information (please complete the following information): Native App Postman for Mac Version 6.1.3 OS X 17.6.0 / x64

sivcan commented 6 years ago

@lunicorn-x64 I understand that there should've been a visible error and there's no indication of that in the app/postman console and I'll mark that as an issue.

However, for now, you can open the DevTools (View > Developer > Show DevTools (Current View))

And you'll see the following error that your script has timed out: image