示例#1
0
 public override void Write(BinaryWriter writer)
 {
     writer.Write(3);
     writer.Write(fromId);
     writer.Write(toId);
     writer.Write(date);
     writer.Write(output);
     writer.Write(unread);
     message.Write(writer);
     file.Write(writer);
 }
示例#2
0
 public static void WriteEncryptedFile(string data)
 {
     EncryptedFile.Write(FilePath, data, Key);
 }
 public static void EncryptData(string data)
 {
     EncryptedFile.Write(Program.UserDataFilename, data, ApplicationKey);
 }
 private static void SetPassword(string password)
 {
     EncryptedFile.Write(Program.ConfigurationFilename, Hashing.Hash(password).Serialize(), ApplicationKey);
 }