zimhide 0.2.0

Zim Steganography Toolkit - WAV steganography CLI for embedding and extracting encrypted text/audio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use anyhow::Result;
use std::path::Path;

pub fn compress_audio(path: &Path) -> Result<Vec<u8>> {
    // For now, just read the raw WAV file bytes
    // In Phase 3, this will use Opus compression
    let bytes = std::fs::read(path)?;
    Ok(bytes)
}

pub fn decompress_audio(data: &[u8], output_path: &Path) -> Result<()> {
    // For now, just write the raw bytes
    // In Phase 3, this will decompress Opus to WAV
    std::fs::write(output_path, data)?;
    Ok(())
}