Vanitygen can generate regular bitcoin addresses, namecoin addresses, and testnet addresses. WWW: https://github.com/samr7/vanitygen