Elf Assembly solution

Identifying which elves meet the criterion of each secret message in turn spells out the padlock code:

7054