Urgent.News

What's breaking now, across thousands of outlets.

Tech

Using SHA256 to Build Trustworthy Data Portals in Brazil

Data portals in emerging markets face a specific credibility problem: how do you prove that the data you display was not silently altered after publication? This matters more than it sounds. Editorial portals covering lottery results, election counts, or public dataset feeds in Brazil are frequently accused (rightly or not) of tampering. The typical defense — "trust us, we did not change…

In Brazil, data portals for lottery results and other public datasets often face accusations of tampering. To combat this credibility issue, I developed a solution called deunobicho.online that uses SHA256 content hashing with public evidence pages. This method ensures that every published resource has a canonical JSON representation and stores the SHA256 hash of the canonical JSON alongside the resource.

A public evidence page is then generated, displaying the raw canonical JSON, the hash, timestamp, source, and a link to the original source. When a portal needs to correct a result, a new evidence page with a new hash is published, and both pages are linked via an audit log. This process allows users to verify the numbers they see on the portal against the hash on the evidence page.

The implementation was done using Next.js 16 (App Router) with an API route that generates the evidence page and ensures the hash remains immutable.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

React is Officially Dead in 2026 (Thanks to AI)

A few years ago, learning React felt almost mandatory. You learned JavaScript. Then React. Then probably Node.js. Then you built the legally required weather app, Todo app, and Netflix clone.

  • React's importance for career advancement may decline by 2026
  • Learning curve for modern React applications has expanded
  • Prioritize mastering JavaScript fundamentals over React

As KDE Turns 30, Contributors and Commits are Going Strong

"In a few weeks, KDE will turn 30 years old," writes core contributor Kevin Ottens, celebrating with some special KDE community data analytics (including a 30-year graph of the number of…

  • KDE celebrates 30th anniversary in few weeks
  • Contributor count averages 180, peaks at 200
  • Commit count hits all-time high in 2023

More from Monday 21 September →