The Bitcoin-QT client only supports an encrypted wallet via a password. If you forget the password you will not be able to access the wallet and the bitcoins contained in that wallet (because that is where all of the secret keys for the addresses are stored).