There is no password. The transfer is a built-in feature, and it takes about twenty minutes.
Go to the main menu of Rock Band 1 and select "export songs". You will need a hard drive attached, since the exported data is written there. Confirm the prompts and leave the console alone while it runs; interrupting it means starting over.
Put the second game in and the imported tracks appear in your song list automatically. There is no code to enter at any stage, which is why anyone asking for a password has been misinformed.
Exporting is a one-time action, so do it before you sell or lend the first game. A small number of tracks were excluded from the transfer for licensing reasons, so expect a few gaps rather than the complete list.