digicode

hello, I would like to make a digicode for a vr game but I don’t know how to do it.
if you have solutions, I’m interested
thank you all