Last post Feb 19, 2021 04:14 AM by yij sun
Feb 18, 2021 05:12 PM|Senthil S R|LINK
i have 100 texts and some of those are encrypted. I want to know which are encrypted texts and which are plain texts. Is it possible or not? If possible, how?
Thanks in advance.
Feb 19, 2021 04:14 AM|yij sun|LINK
Hi Senthil S R,
As far as I think,you could prefix an encrypted string with "!=!enc!=!".And then, you can simply determine whether a piece of text is encrypted or not,
Just like this:
private static bool IsEncrypted(string text)
if (string.IsNullOrEmpty(text)) return false;
return text.StartsWith("!=!enc!=!", StringComparison.InvariantCulture);
More details,you could refer to below article: