I'm working on encryption storage in vanilla js and was planning to use crypto.subtle for doing so. The problem is the private key is supposed to be the password of that user.
Even after going through the documentation of crypto.subtle I didn't find a way to do so.
So, is it possible to do so in crypto.subtle and if not, is there a another way of doing so.