UNPKG

@fairfox/zws

Version:

Zero-width steganography utilities for invisibly embedding data in text using Unicode zero-width characters

31 lines (30 loc) 1.08 kB
/** * Zero-Width Steganography Utils * Invisible data embedding using zero-width Unicode characters * * This module provides functionality to embed arbitrary string data directly into * text using zero-width Unicode characters, making them completely invisible to users * while allowing programmatic extraction of the embedded data. * */ declare function hasEmbeddedData(text: string): boolean; declare function embed(text: string, data: string): string; declare function extract(text: string): string; declare function getCleanText(text: string): string; declare function encodeData(data: string): string; declare function decodeData(encodedBinary: string): string; declare const zws: { START_MARKER: string; END_MARKER: string; ZERO_BIT: string; ONE_BIT: string; MAX_DATA_LENGTH: number; MAX_ENCODED_LENGTH: number; hasEmbeddedData: typeof hasEmbeddedData; embed: typeof embed; extract: typeof extract; getCleanText: typeof getCleanText; encodeData: typeof encodeData; decodeData: typeof decodeData; }; export default zws;