Results 1 to 14 of 14
-
29-03-2004, 00:35 #1
-= TeamSpeak User =-
- Join Date
- Aug 2003
- Location
- Cali
- Posts
- 11
How to encrypt the user database (MySQL)
Is it possible to use the encrytped passwords from another DB to authenticate a TS user (or admin)? Or, if it is not, is the source for TS available?
EDITED by Guldi: made thread sticky and changed title (old one: "TeamSpeak and UBBThreads")Last edited by guldi; 27-07-2005 at 09:52.
-
29-03-2004, 01:03 #2
-= TeamSpeak Addict =-
- Join Date
- Sep 2003
- Location
- netherlands
- Posts
- 245
the passwords in TS are still un encrypted

so if you know how the passwords are encrypted you can match those two.
so:
read password from teamspeak db
encrypt password
match password with other database
-
29-03-2004, 02:41 #3
-= TeamSpeak User =-
- Join Date
- Aug 2003
- Location
- Cali
- Posts
- 11
Yeah, but I was hoping I could use the forums password directly without writing a script to sync the 2. I would also prefer to keep the forum passwords encrypted completely (i.e. not have it unencrypted in another DB)
-
29-03-2004, 08:38 #4
-= TeamSpeak Addict =-
- Join Date
- Sep 2003
- Location
- netherlands
- Posts
- 245
yes you could make a link so people could login, but isn't that security at it worst?
anyways, search in the forum for teamspeak:// and you will find it i guess.
-
06-04-2004, 02:53 #5
-= TeamSpeak Addict =-
- Join Date
- Apr 2004
- Location
- Dominican Republic
- Posts
- 115
maybe this coud help:
How to hash passwords when using MySQL
If you are using MySQL as your database,
you could hash your passwords to either MD5 or SHA.
This way they won't store as plain text.
If you want to use SHA, then specify SHA instead of MD5.
Just edit the files new_client.sql , read_client_login.sql and edit_client.sql using notepad.
I suggest you backup them first, and backup your database too.
Replace :sPassword with MD5(:sPassword)
To convert my current database, I used the following SQL command:
UPDATE ts2_clients SET s_client_password=MD5(s_client_password);
You could probably even use a more secure hash/encryption algorithm:
Read more on MySQL's Encryption FunctionsLast edited by McAfee; 06-04-2004 at 05:45.
-
07-04-2004, 19:51 #6
-= TeamSpeak Addict =-
- Join Date
- Sep 2003
- Location
- netherlands
- Posts
- 245
yeah great i can verify it works for me.Originally posted by McAfee
maybe this coud help:
How to hash passwords when using MySQL
If you are using MySQL as your database,
you could hash your passwords to either MD5 or SHA.
This way they won't store as plain text.
If you want to use SHA, then specify SHA instead of MD5.
Just edit the files new_client.sql , read_client_login.sql and edit_client.sql using notepad.
I suggest you backup them first, and backup your database too.
Replace :sPassword with MD5(:sPassword)
To convert my current database, I used the following SQL command:
UPDATE ts2_clients SET s_client_password=MD5(s_client_password);
You could probably even use a more secure hash/encryption algorithm:
Read more on MySQL's Encryption Functions
but remember this does not make the server more secure, because passwords are still transfered unencrypted.
i'll write a small script so other people can upgrade easyer
-
07-04-2004, 22:13 #7
-= TeamSpeak Addict =-
- Join Date
- Sep 2003
- Location
- netherlands
- Posts
- 245
okey this way everybody should be able to update to an encrypted database. i have edited the sql files and made a small script for both windows and linux users.
http://madcat.student.utwente.nl/teamspeak_md5.exe [down]
http://madcat.student.utwente.nl/teamspeak_md5.tar.gz [down]
http://madcat.student.utwente.nl/teamspeak_md5.zip [down]Last edited by madcat; 17-09-2005 at 21:43.
-
01-08-2005, 13:34 #8
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,299
Nice work!
-
28-09-2005, 22:32 #9
-= TeamSpeak Lover =-
- Join Date
- Jun 2004
- Location
- USA
- Posts
- 88
does this work on the sql lite?
-
29-09-2005, 07:36 #10
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,299
I dont think SQLite supports MD5 checksums.
-
02-10-2005, 23:18 #11
-= TeamSpeak Addict =-
- Join Date
- Sep 2003
- Location
- netherlands
- Posts
- 245
here are the supported commands:
Originally Posted by louig1
http://www.sqlite.org/lang.html
there is no md5, but you can try it.
but i do not give you a very high success rate.
-
05-10-2005, 22:31 #12
-= TeamSpeak Lover =-
- Join Date
- Jun 2004
- Location
- USA
- Posts
- 88
ok how can i convert my ts database over to mysql so i can use the md5 and such?
-
06-10-2005, 12:33 #13
-= TeamSpeak Addict =-
- Join Date
- Sep 2003
- Location
- netherlands
- Posts
- 245
if you used the search you could have found this:
Originally Posted by louig1
http://forum.goteamspeak.com/showthread.php?t=12184
-
24-10-2005, 00:45 #14
-= TeamSpeak User =-
- Join Date
- Aug 2005
- Location
- Maryland
- Posts
- 21
Works great! If you have phpmyadmin, its even easier. Thanks!
Originally Posted by McAfee
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to link TS with mysql database ?
By Deckard33 in forum [TeamSpeak 2] Server SupportReplies: 0Last Post: 21-04-2005, 17:37 -
Found some problems (and fixed) with a TS2 and MySQL installation
By MaD-Ogre in forum [TeamSpeak 2] Server SupportReplies: 6Last Post: 20-01-2005, 22:21 -
Need help Mysql database
By om3ega in forum [TeamSpeak 2] Server SupportReplies: 3Last Post: 23-03-2004, 17:53 -
user account database
By dingli in forum [TeamSpeak 2] Server SupportReplies: 4Last Post: 01-10-2003, 17:17 -
How to edit user database "server.db"?
By balu in forum [TeamSpeak 2] Server SupportReplies: 0Last Post: 31-01-2003, 13:06


Reply With Quote