What source code are you using - i cant understand why your adding a passkey on torrent creation - if your using tbdev with a passkey installed then your personal passkey is simply embedded in the torrent automatically on download - Use
http://www.yoursite.org/announce.php -- Thats all you need to do when creating your torrent.