If you dream that you unlock something, it shows the secrets that are being revealed. If you unlock something that you shouldn’t unlock, because it doesn’t belong to you, you will take some risks in your waking life that might be even dangerous. Think twice before you put yourself into unknown situation.

…(Padlock) In a dream, a lock represents a trustworthy person or a virgin girl. Opening a padlock in a dream means escaping from jail, or release from prison. If one who is suffering from depression sees himself unlocking a padlock in a dream, it means that his sorrows or sadness will be dispelled. A lock in a dream also represents a proof, a strong point or a tool. Unlocking a padlock in a dream also means divorce. Locking a door in a dream means seeking a cosigner for a loan or a guarantor. If one who is seeking to get married sees a lock in his dream, it means that he will meet with a trustworthy and a caring woman. A padlock for a traveller in a dream means safety. A metal lock in a dream means dignity, safety, piety, deciphering a language, symbols, or acquiring knowledge. Wooden locks…

…Dreaming of keys, denotes unexpected changes. If the keys are lost, unpleasant adventures will affect you. To find keys, brings domestic peace and brisk turns to business. Broken keys, portends separation either through death or jealousy. For a young woman Dreaming of losing the key to any personal ornament, denotes she will have quarrels with her lover, and will suffer much disquiet therefrom. If she dreams of unlocking a door with a key, she will have a new lover and have over-confidence in him. If she locks a door with a key, she will be successful in selecting a husband. If she gives the key away, she will fail to use judgment in conversation and darken her own reputation….

(Shut) If a single man sees himself shutting a door in a dream, it means that he will marry a righteous woman. If a married man sees himself shutting a door in a dream, it means that he may divorce his wife. Locking a door in a dream also means getting married, though unlocking a padlock has negative connotations. If one sees his door locked in a dream, it means that he will choose to pursue his worldly satisfaction instead of fulfilling his religious obligations. If one tries to lock the door of his house and fails to do so in his dream, it means that he will abandon a hard decision he took, or refrain from pursuing the impossible in his case.