RC4 Encryption
13
This snippet effectively reads an XML document using XPathDocument (read-only) instead of using the DOM. This snippet returns the full element values in between elements. For example:
root element
code element
This is a test.
/code element
/root element
GetXmlString("/root/code"); //returns 'This is a test.'
root element
code element
This is a test.
/code element
/root element
GetXmlString("/root/code"); //returns 'This is a test.'
6
Write a set of bytes into a 'so-called' binary file. The point is that we use BinaryWriter here and we have a byte array as input.
6
This snippet generates a secure hash string using VB.NET
-8
A function to determine if the input filename is valid on Win32 platforms (that is, it does not include invalid characters, such as :\?...)
-9
Write a set of bytes into a so-called binary file. The point is that we use BinaryWriter here and we have a byte array as input.
9
Set the read-only attribute of a file to true or false.
15
This litle snippet shows how to store passwords and then check inputed passwords if they are correct.
(In this snippet we use som pseduo code for the database connection).
(In this snippet we use som pseduo code for the database connection).
6
This is a function that receives a dataTable and return it in a pivoted way.
-15
Simple loop through datatable
11
Second example of reading an excel file. Reading with a SELECT syntax.









