Categories
C# / .NET Program Tutorial

C# Program to send email through STMP (with Authentication) – asp.net

Step to program to send Email through C#: 1. Initialize the required inputs: In our program, we have provided Name, Email, Phone number, Subject and Message as the string datatype and assigned values to those strings. 2. Create the Object for SmtpClient SmtpClient mailSender = new SmtpClient(); Assign the values to the mailSender object. Some […]

Categories
C# / .NET Program Tutorial

How to encrypt plain text into SHA1 hash using C# program?

As we all know, SHA is an Cryptography hash function that is very much similar to MD5 hashes. SHA stands for Secure Hash Algorithm,. There are different versions in SHA like SHA-0, SHA-1, SHA-2, and SHA-3. We are going to write program about SHA1 hash using C# code.  We should know some basic thing about SHA1 […]