I believe the codes change routinely and is a plastic imprinted card called the biscuit, which the president must have on his person at all times. At least according the the book dereliction of duty which tells the military aid story who carried the football when Clinton was separated from the biscuit
It was the codes from the biscuit Trump memorized.