A lock and key combination is disclosed, offering a large number of codes. The combination includes a lock (200) of the kind comprising a housing having a cylindrical bore, a cylindrical key plug (202) and a number of locking pins (205a-205g) in a row along a key plug axis for locking the key plug against rotation in the cylindrical bore, and a key (100) of the kind comprising a longitudinally extending, substantially flat key blade (102), with at least two longitudinally extending formations. The key blade comprises an upper edge portion having a first code pattern (103) and a lower, massive portion having a second code pattern (104). At least one of the locking pins in said row is a short pin (205a, 205b, 205c) comprising a first, relatively short key sensing part (207, 208) cooperating with the first code pattern (103), and at least another one of the locking pins in said row is a long pin (205f, 205g, 205h) comprising a second, relatively long key sensing part (210, 207, 208) cooperating with the second code pattern (104).