How to create symmetric encryption utility class in ASP.NET in VB.NET
Symmetric encryption algorithms use one key for encrypting and decrypting data. You can create a utility class that performs the encryption and decryption of sensitive data:
Imports System
Imports System.IO
Imports System.Text
Imports System.Security.Cryptography
Public NotInheritable Class SymmetricEncryptionUtility
Private Sub New()
End Sub
Private Shared _ProtectKey As Boolean
Private Shared _AlgorithmName As String
‘ You can …