1, guid is used to solve the problem at first, but in EF, if guid is returned directly, because it cannot be decrypted, you have to check it in the database first and then change it. This is the conventional way, but for the sake of efficiency and do not want to query, it is difficult to modify
2. Now you are thinking of reversible encryption and decryption of id and transmission of encrypted ID. You are thinking of methods such as DES, but you are not familiar with
3 for encryption and decryption. Is there a more convenient method for integer ID reversible encryption and decryption