I was recently reviewing an electronic medical records and telemedicine package that I was planning to buy for a small remote clinic. The vendor kindly supplied me with a demo copy of the package so that I could evaluate it.
All looked good. I enquired about security - AES 256 throughout, the CEO told me.
Anyway curiosity got the better of me and I fired up my JustDecompile and decided to take a look.
Bwahahahah.
All looked good. I enquired about security - AES 256 throughout, the CEO told me.
Anyway curiosity got the better of me and I fired up my JustDecompile and decided to take a look.
Code:
public static string encrypt(string encrypt)
{
string str;
string empty = string.Empty;
try
{
string str1 = encrypt.TrimEnd(new char[0]);
char[] charArray = str1.ToCharArray();
int num = 0;
while (true)
{
bool length = num < (int)charArray.Length;
if (!length)
{
break;
}
int num1 = Convert.ToInt32(charArray[num]) + 10;
charArray[num] = Convert.ToChar(num1);
empty = string.Concat(empty, charArray[num].ToString());
num++;
}
str = empty;
}
catch (Exception exception)
{
str = null;
}
return str;
}
Bwahahahah.