
It simply means having sufficient amount of money every time is like a golden key with which you can open any door.
This notion must be as old as money itself. The first person who is known to have written it down is the English playwright John Lyly, in Euphues and his England, 1580: Who is so ignorant that knoweth not, gold be a key for euery locke, chieflye with his Ladye.