Hack Forums
[.NET] [C# & VB] SimpleCryptography class - Simple byte and string encryption/decryption - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] [C# & VB] SimpleCryptography class - Simple byte and string encryption/decryption (/showthread.php?tid=4792560)



[C# & VB] SimpleCryptography class - Simple byte and string encryption/decryption - BahNahNah - Apr 24, 2015

Download (C#): Pastebin
Download (VB): Pastebin (Untested)

i will convert it to VB if people want it.

Example:

This code
Code
string start = "Hello world";
Console.WriteLine(start);
string enc = SimpleCryptography.EncryptString(start, "pass");
Console.WriteLine(enc);
string ret = SimpleCryptography.DecryptString(enc, "pass");
Console.WriteLine(ret);
Console.ReadLine();
will output
Code
Hello world
j+BWO1y+2mys0yfhJK/47g==
Hello world



* - Ninja - Apr 25, 2015

This is the VB section, so yes, convert it to VB (not that it is needed, really. Code is pretty simple. But yeah my point is this is the VB section not C#) or post in the C# subforum.


* - BahNahNah - Apr 25, 2015

(Apr 25, 2015 06:04 AM)Tyranitar Wrote:  This is the VB section, so yes, convert it to VB (not that it is needed, really. Code is pretty simple. But yeah my point is this is the VB section not C#) or post in the C# subforum.

Ok, i thought this was the .net section, thanks for the heads up. I will convert it.