[reSIProcate-users] Hashed passwords
Hallo all,
I am building a webrtc video chat and I am using resiprocate server on my Ubuntu 14 vps as a signaling server.
I just installed it using:
apt-get install resiprocate-turn-server
I modified:
/etc/reTurn/reTurnServer.config
TurnAddress = 243.187.166.21
AuthenticationRealm = mydomain.org
UserDatabaseHashedPasswords = false
/etc/reTurn/users.txt
myname:mypassword:mydomain.org:authorized
using it in my js chat configuration file:
iceServers: [{url: "turn:243.187.166.21", credential: "mypassword", username: "myname"}]
and it's working just fine but I have some questions:
I don't understand how to use the hash password:
echo -n myname:mydomain.org:mypassword | md5sum
773b12ccced7a9bfe6981ebfce96bc17 -
then in /etc/reTurn/reTurnServer.config:
UserDatabaseHashedPasswords = true
/etc/reTurn/users.txt
773b12ccced7a9bfe6981ebfce96bc17 ?
and in the js file?
iceServers: [{url: "turn:243.187.166.21", 773b12ccced7a9bfe6981ebfce96bc17 }] ?
How can be possible to hide the username and password if the values are passed openly in the js file of the chat?
iceServers: [{url: "turn:243.187.166.21", credential: "mypassword", username: "myname"}]
How do I set it up as Stun server in order to use it like:
'iceServers': [{'url': 'stun:mydomain.org'}] I've found the WebAdmin on 243.187.166.21:5080 as per: https://www.resiprocate.org/Using_Repro#Adding_Users is not working.
Thankyou very much for your help.
Matteo