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); }
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); }