Creation of Token and Encryption