Authentication routines working using digest