A control method for operating an electric lock by using a portable device includes the portable device obtaining an encrypted message according to an encryption function; the portable device transmitting the encrypted message to the electric lock; the electric lock decrypting the encrypted message according to a decryption function; and the electric lock determining whether to perform an action according to a decryption result of the encrypted message.