separate salt to default encode function and change default key size