A minimalistic authentication engine