Encrypting webrtc pjsip enpoint password on the javascript

Hi how can i achieve password encryption on the webrtc from the javascript to asterisk. I know the page is loaded via https but someone can check the source code on the page and see the password

That’s a WEBRTC question, not an Asterisk one. However, for any protocol that has to run on a general purpose computer which is not under you control, I think your requirement is fundamentally impossible to achieve. Even if normal browsers could be convinced to hide the source code, the attacker could use a modified browser. Ultimately, they could run the the machine in a debug environment.