Im looking to build a PHP/Mysql system to compliment my teamspeak server. Ive done some google searching and i havent been able to find my answer. the system im looking to build will require me to be able to generate a channel password. Of course this is an encrypted password and im not sure which encryption type it is so i can generate a password with the same type to insert into my database.
Does anyone either have a script for the encryption generation that match's teamspeak 3's, or perhaps can point me into the right direction.

Thanks for the help