Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Detecting Fake FLAC Files in the Browser: Raw STREAMINFO Parsing and 80-Slice 2048-Point FFT Forensics

If you inspect a FLAC file with ffprobe or a media player and see 16-bit / 44.1 kHz / 942 kbps , you still do not know whether the audio is lossless. Transcoding a 128 kbps MP3 into FLAC does not restore discarded spectral data; it simply wraps the decoded, quantized PCM stream inside a lossless entropy coder. The resulting file passes every structural integrity check—valid fLaC framing, clean…

Detecting Fake FLAC Files in the Browser involves two key checks: raw STREAMINFO verification and statistical spectral analysis. First, parse the raw ArrayBuffer to confirm the PCM geometry. The valid FLAC signature starts with 'fLaC' (0x664C6143), followed by a STREAMINFO header with sample rate, channels, bit depth, and total samples encoded in bytes 18-25.

JavaScript code can extract these parameters from the buffer. Second, perform a spectral analysis by dividing the active portion of the mono-summed signal into 80 slices of 2048 samples each, applying a Hann window. Compute the 90th percentile power across these slices for each frequency bin. Compare these with reference bands (10-14 kHz) to identify sudden drops indicative of lossy-to-lossless transcode.

This method requires no file uploads or external tools, enabling browser-based detection of fake FLAC files.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Zero-Knowledge Rollups vs Optimistic Rollups: Two Ways to Trust a Chain

A blockchain that processes everything on the main chain is slow and expensive. Rollups move the work off-chain and post only a compact result back, but they disagree about how that result should be…

  • Zero-knowledge rollups use cryptographic proofs for transaction validation
  • Optimistic rollups rely on challenges and observer honesty for validation
  • Both methods achieve similar security but differ in trust mechanisms

Nginx Hardening Checklist

Nginx ships with sensible defaults, but a default install is not a hardened one. Version numbers leak in headers, old virtual hosts answer for any hostname, security headers vanish on error pages, and…

  • Ensure Nginx and OpenSSL are up-to-date
  • Hide Nginx version by setting servertokens off
  • Redirect HTTP traffic and implement HSTS

TCP BBR vs CUBIC: Two Theories of How Fast to Send

Every TCP connection has to decide how fast to send without drowning the network. For decades the standard answer was to speed up until packets were lost, then slow down.

  • CUBIC algorithm reacts after packet loss, adjusts rate using cubic curve
  • BBR algorithm measures bandwidth and delay, sends data proactively
  • BBR excels on high-bandwidth, high-delay, or lossy paths, CUBIC on conventional networks

Vectorized Execution vs JIT Compilation: Two Ways to Make Queries Fast

Modern query engines face the same enemy: the cost of interpreting a query plan value by value. Two schools emerged to fight it. One processes many values at a time in tight loops over arrays.

  • Vectorized execution processes many values at once through array or batch operations.
  • JIT compilation compiles query plans into machine code to eliminate interpretation.
  • Hybrid engines combine both methods for tailored query performance.

More from Thursday 26 November →