make advanced algorythm for build salt