I need to code a simple login system for a website that has a MySQL database with usernames and passwords that are used by the desktop app written in Python.
The desktop app uses PBKDF2-SHA256 encryption (through the hashlib.pbkdf2_hmac() function in Python) to hash the passwords with unique random salts. Because of this, I need to use the same type of encryption to handle the passwords on the website, for which I will be writing code in JavaScript.
I've come across several JavaScript libraries for bcrypt, but not really much of anything for PBKDF2 apart from NodeJS (and I don't want to have to use an entire app framework just for encryption). How can I handle PBKDF2 encryption in JavaScript?