The YubiKey Personalization package contains a library and command line tool used to personalize (i.e., set a AES key) YubiKeys.