The Elvish word for 'friend' that opens the door to the Mines of Moria is 'Mellon.' In "The Fellowship of the Ring," Gandalf uses this word to open the Doors of Durin, the western gate of Moria, after realizing the door's inscription asks for a password, which is the Elvish word for 'friend.'