If u dont own this server, u cant decrypt username and password on this serwer, u need to send clean post. U can store data, in db, session, depending on what you want to write. Simple crypt and decrypt string.
$key_value = $username;
$encrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $plain_text, MCRYPT_ENCRYPT);
$decrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $encrypted_text, MCRYPT_DECRYPT);