add hashcode

add hashcode  to assure that the security code does not repeat