Ejemplo n.º 1
0
        private SaltedBytesCache GetDecryptionSaltedBytesCache(SecureHead secureHead)
        {
            if (decryptionCaches == null)
            {
                decryptionCaches = new Dictionary <string, SaltedBytesCache>();
            }

            string cacheKey = secureHead.ToString();

            if (decryptionCaches.ContainsKey(cacheKey) == false)
            {
                decryptionCaches.Add(
                    cacheKey,
                    new SaltedBytesCache(
                        secureHead,
                        Config.Password));
            }

            return(decryptionCaches[cacheKey]);
        }
Ejemplo n.º 2
0
 public override string ToString()
 {
     return(SecureHead.ToString());
 }