A terminal used in an authentication system in which the terminal and a server make authentication via a wireless base station, the terminal and the wireless base station make wireless communication with each other, and the server and the terminal hold a hash function and authentication information in common, comprising:
- a terminal side authentication parameter acquiring unit which acquires, as an authenticating communication parameter, a communication parameter which is temporarily common during communication with the wireless base station;
- a terminal side authentication key generating unit which generates a first authentication key based on the authenticating communication parameter acquired by the terminal side authentication parameter acquiring unit, the authentication information, and the hash function;
- and
- a terminal side authentication key sending unit which sends the first authentication key via the wireless base station to the server.