Example of Encrypting and Decrypting a String into a SQL Table Using ASP.NET

I’ve put together this article because even after a lot of searching, I wasn’t able to find a simple, working example of how to encrypt and then decrypt a string that you are saving in your database in ASP.Net. Sure, there are some partial examples, but partial code usually doesn’t answer the question properly. Added to that, a lot of examples are out there that plain don’t work, confusing the issue and wasting a lot of time. So in this article I’ll give an example of a fully working test Web page that saves an encrypted string to a SQL Server database table, and that also shows the decrypted field back to the user.

Continue reading “Example of Encrypting and Decrypting a String into a SQL Table Using ASP.NET”

Advertisements

Batch Script to Detect Non-Pingable Machines in a Range of IP Addresses

In an earlier article I talked about how to set up a batch script to loop through a range of IP addresses and attempt to resolve active machines within that range. In this article I will follow up on my earlier examples to help make the results of the scan more accurate.

Continue reading “Batch Script to Detect Non-Pingable Machines in a Range of IP Addresses”

Batch Script to Ping a Range of IP Addresses to Identify Active Computers

Sometimes you will want to find out more about your local area network and what machines are running at certain IP addresses. Querying the domain name server can be unreliable since some machines may be hidden, so sending a direct ping is the most reliable way of checking for the existence of a machine. Continue reading “Batch Script to Ping a Range of IP Addresses to Identify Active Computers”