The spreading code generating apparatus (100) generates a spreading code (15) used for communication. The initial value calculation unit (10) which is the counter unit (91) generates a plurality of increment values in which the initial value (11) is incremented by incrementing the initial value (11) as a counter a plurality of times. The spreading code generation unit (20) which is the encryption unit (92) generates the spreading code (15) from each increment value by encrypting each increment value with the encryption algorithm using the secret key (13) .
展开▼