A locking device attached to a solar junction box and a key to open the locking device, comprises: a male part; comprising: a plug-in unit extended at an angle from the male part; a pair of protruded units having a locking tab formed on edges of the plug-in unit; an outward projection disposed above the locking tab; and a slant portion formed on top of the outward projection; and a female part; comprising: a hollow main body having an outside wall and an inside wall; a pair of extrusions disposed at the inside wall of the female part corresponding to the pair of locking tabs of the male part; and a step formed in the lower part of the extrusions of the female part geometrically shaped to match the locking tab of the male part, in a locked position the male part and the female part are securely clamped together.