๐Ÿ’“

Heart Codec

open source
GitHub
Cardiac steganography

Hide messages inside your pulse

Heart Codec turns the subtle skin-color changes caused by your heartbeat into a covert communication channel. Record a video, encode a secret message into your forehead pixels, and decode it later โ€” all entirely in your browser.

How it works in 4 steps

๐Ÿ“น

Record

Film your face for a few seconds using your webcam

๐Ÿ’“

Detect

The rPPG algorithm extracts the cardiac signal from the pixels

๐Ÿ”

Encode

A secret message is modulated into the pulse frequency

๐Ÿ”“

Decode

The message is recovered through spectral analysis of the video

Features

๐Ÿ“–

Open source

The full codebase is available on GitHub. Inspect, fork, and contribute freely.

๐Ÿ‘๏ธ

Imperceptible

The injected signal amplitude (~10/255) is invisible to the naked eye. The video looks unchanged.

๐Ÿ“Š

Spectral analysis

Decoding uses the FFT to identify the carrier frequencies (5 Hz and 8 Hz) for each bit.

๐Ÿงช

Experimental project

A fun proof-of-concept at the intersection of signal processing, computer vision, and steganography.

โš ๏ธ This is a toy project โ€” do not use for real encryption or to protect sensitive data.