Esempio n. 1
0
 internal void SaveSha512Hash(string fSha512)
 {
     Damocles2Entities de = new Damocles2Entities();
     Hash h = new Hash();
     h.CreatedOn = DateTime.UtcNow;
     h.HashType = "SHA512";
     h.HashValue = fSha512;
     h.id = GetRecordId();
     h.UpdatedOn = DateTime.UtcNow;
     de.Hashes.Add(h);
     de.SaveChanges();
 }
Esempio n. 2
0
 internal void SaveMD5Hash(string fMd5)
 {
     Damocles2Entities de = new Damocles2Entities();
     Hash h = new Hash();
     h.CreatedOn = DateTime.UtcNow;
     h.HashType = "MD5";
     h.HashValue = fMd5;
     h.id = GetRecordId();
     h.UpdatedOn = DateTime.UtcNow;
     de.Hashes.Add(h);
     de.SaveChanges();
 }