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(); }
public void PutData(string key, string json) { File.WriteAllBytes(Path, EncryptionHandler.Encrypt(key, json)); }