コード例 #1
0
        public void PutData(string key, string json)
        {
            SqlCommand command = new SqlCommand("UPDATE QuickCopy.Users SET [Data] = @Data WHERE ID = @UserID", conn);

            command.Parameters.AddWithValue("@UserID", userID);
            command.Parameters.AddWithValue("@Data", EncryptionHandler.Encrypt(key, json));
            command.ExecuteNonQuery();
        }
コード例 #2
0
 public void PutData(string key, string json)
 {
     File.WriteAllBytes(Path, EncryptionHandler.Encrypt(key, json));
 }