public CasSymmCrypto(eSymmetricAlgorithm aSymmAlg) { pErr = new Error(); pSymmAlg = aSymmAlg; mIV = Encoding.Default.GetBytes("shgfvbnmw3cvakskf4dhfja3sf This is initial vector"); }
private string GetSymmetricAlgorithmText(eSymmetricAlgorithm aSA) { string ret = string.Empty; switch (aSA) { case eSymmetricAlgorithm.DES: ret = "DES"; break; case eSymmetricAlgorithm.RC2: ret = "RC2"; break; case eSymmetricAlgorithm.Rijndael: ret = "Rijndael"; break; case eSymmetricAlgorithm.TripleDES: ret = "TripleDES"; break; } return ret; }