https://github.com/girkovarpa/watermark
https://stackoverflow.com/questions/62332819/how-to-embed-text-inside-image/62335638
https://github.com/girkovarpa/watermark
lsb steganography watermark
Last synced: 5 months ago
JSON representation
https://stackoverflow.com/questions/62332819/how-to-embed-text-inside-image/62335638
- Host: GitHub
- URL: https://github.com/girkovarpa/watermark
- Owner: GirkovArpa
- License: mit
- Created: 2020-06-12T00:29:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T00:36:12.000Z (about 6 years ago)
- Last Synced: 2025-08-18T05:50:02.192Z (11 months ago)
- Topics: lsb, steganography, watermark
- Language: HTML
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a client-side implementation of LSB (least significant bit) steganography.
It does not work for images with transparency. I don't know why.
```html
(async () => {
const base64 = /* some base64 image data goes here */;
const watermark = await createWatermark(base64, 'John Doe');
const image = new Image();
image.src = watermark;
document.body.appendChild(image); // displays watermarked image on screen
const hiddenText = await readWatermark(watermark, 8);
console.log(hiddenText); // John Doe
})();