Hi @Takeshi , Welcome to Microsoft Q&A,
Updated: It store diffent encrypter string to second database.
Solve the problem of character changes.
When reading strings from the database, make sure to use the correct character encoding. If different character encodings are used between the database and application, string parsing errors may result. You can use the Encoding class to explicitly specify the character encoding.
Before passing the string to the decryption function, sanitize it to ensure that no extra whitespace characters or special characters interfere with the decryption process. You can use the Trim() method to remove whitespace characters from both ends of a string.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.