Include #using System.Security.Cryptography namespace in your project before you can use the class. The sample code looks like the following:
Rijndael alg = Rijndael.Create(); alg.Key = pdb.GetBytes(16); alg.IV = pdb.GetBytes(16); CryptoStream cs = new CryptoStream(ms, alg.CreateEncryptor(), CryptoStreamMode.Write); cs.Write(clearBytes, 0, clearBytes.Length); cs.Close(); byte[] encryptedData = ms.ToArray();ANOTHER LINKS:http://mfc-project.blogfa.com/post-23.aspxOR:http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7468&lngWId=10ENJOY IT.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: