public async Task <string> SignUp(UserDto request) { //Check minimum constraints ,number or something, the basics var data = Encoding.UTF8.GetBytes(request.Name + request.Surname); byte[] result; SHA512 shaM = new SHA512Managed(); result = shaM.ComputeHash(data); request.Hashid = Guid.NewGuid().ToString().ToLower() + Convert.ToBase64String(result); await repository.SignUp(request.DtoEntity()); return(request.Hashid); }