You mentioned open sesame which comes from One Thousand and One Nights, published between 1704 and 1717. This is the first documented use of the phrase but it Gallard probably just used an Arabic folk tale as the basis of the story.
Sorry, we don't allow throughout history questions. These tend to produce threads which are collections of trivia, not the in-depth discussions about a particular topic we're looking for. If you have a specific question about a historical event or period or person, please feel free to re-compose your question and submit it again. Alternatively, questions of this type can be directed to more appropriate subreddits, such as /r/history or /r/askhistory.
How exactly do you define a password? Is an encryption key a password according to your definition?