Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcarrio/invisihash
hashed input rendered as nothing
https://github.com/tcarrio/invisihash
Last synced: about 4 hours ago
JSON representation
hashed input rendered as nothing
- Host: GitHub
- URL: https://github.com/tcarrio/invisihash
- Owner: tcarrio
- Created: 2021-06-08T21:34:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T14:55:46.000Z (over 3 years ago)
- Last Synced: 2024-04-24T14:58:24.314Z (7 months ago)
- Language: TypeScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![npm (scoped)](https://img.shields.io/npm/v/@0xc/invisihash)](https://www.npmjs.com/package/@0xc/invisihash)
[![npm](https://img.shields.io/npm/dt/@0xc/invisihash)](https://www.npmjs.com/package/@0xc/invisihash)
[![GitHub issues](https://img.shields.io/github/issues/tcarrio/invisihash)](https://github.com/tcarrio/invisihash/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/tcarrio/invisihash)](https://github.com/tcarrio/invisihash/pulls)
![Dependencies](https://img.shields.io/badge/dependencies-0-orange)# invisihash
generate a zero-width (*rendered*) hash with popular algorithms such as SHA-256.
## install
you can install using `npm` or `yarn`:
```sh
npm install @0xc/invisihashyarn add @0xc/invisihash
```## examples
```js
import { hash } from "@0xc/invisihash";const someValue = JSON.stringify(arguments);
const output = hash(someValue, "sha384");
```the default algorithm is `sha256` and is not required to be passed
```js
hash("hello world");
```## why does this even exist
Confluence requires unique titles and allows unicode so 🚀🚀🚀