create digest and remember token