Improve generate secret token