Bury latent information to your web page for confidentiality and track.
If someone leak data by screenshots, you can reveal identity information from the picture.
$ npm install backstab --save
import Backstab from 'backstab'
new Backstab({
content: 'the text you want to bury',
container: document.body
})
content: string
, default is''
container: HTMLElement
, the container DOM to store watermarks. default isdocument.body
style: object
, custom watermark stylegridHeight: number
, grid height, default is60
gridWidth: number
, grid width, default is150
fontSize: number
, font size, default is20
opacity: number
, opacity, default is0.5
, recommmend0.005
rotate: number
, rotate deg, default is-15
This is a screenshot with 0.005 opacity buried information. Open it with PhotoShop, add new pure black upper layer, use hard mix
blending mode to show the text.
MIT