least-significant-bit
v1.0.1
Published
Hide and extract string data in the least-significant bits of an image
Downloads
8
Maintainers
Readme
Least Significant Bit
Least significant bit (LSB) insertion is a common and simple method to embed data in an image file.
Demo
$ npm i least-significant-bit
# or
$ yarn add least-significant-bit
Usage
import Lsb from 'least-significant-bit';
Or include it via jsDelivr CDN (UMD):
<script src="https://cdn.jsdelivr.net/npm/least-significant-bit/build/index.min.js"></script>
<!-- Or via unpkg -->
<script src="https://unpkg.com/least-significant-bit"></script>
<!-- Access via global object : window.Lsb -->
Methods
// hide message
Lsb.encode(imageData: ImageData, message: string): ImageData
// extract image
Lsb.decode(imageData: ImageData): string
Author
License
MIT