Beispiel #1
0
 private void CreateHelper(CryptographyAlgorithm algorithm, string key)
 {
     if (key.Trim().Length == 0)
     {
         helper = CryptoFactory.Create(algorithm);
     }
     else
     {
         helper = CryptoFactory.Create(algorithm, key);
     }
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="algorithm"></param>
 private void CreateHelper(CryptographyAlgorithm algorithm)
 {
     helper = CryptoFactory.Create(algorithm);
 }