Encrypting the username and password only helps if you're interactively typing in a passphrase to decrypt it at runtime.
Otherwise, whatever your program does can be done by an attacker -- that's like securing a door with a $500 lock and placing the key under the doormat :).