A secure cookie generator