Skip to content

jin5354/backstab

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

backstab

Build Status npm

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.

install

$ npm install backstab --save

usage

import Backstab from 'backstab'

new Backstab({
  content: 'the text you want to bury',
  container: document.body
})

config

  • content: string, default is ''
  • container: HTMLElement, the container DOM to store watermarks. default is document.body
  • style: object, custom watermark style
    • gridHeight: number, grid height, default is 60
    • gridWidth: number, grid width, default is 150
    • fontSize: number, font size, default is 20
    • opacity: number, opacity, default is 0.5, recommmend 0.005
    • rotate: number, rotate deg, default is -15

reveal

screenshots

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.

image

license

MIT

About

Bury latent information to your web page for confidentiality and track.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published