https://github.com/k4m4/dcipher
Decipher hashes using online rainbow & lookup table attack services.
https://github.com/k4m4/dcipher
capture-the-flag crack cracking ctf dcipher decipher hash md5 nodejs password rainbow-table sha
Last synced: 10 months ago
JSON representation
Decipher hashes using online rainbow & lookup table attack services.
- Host: GitHub
- URL: https://github.com/k4m4/dcipher
- Owner: k4m4
- License: mit
- Created: 2018-04-08T17:48:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T16:13:56.000Z (about 3 years ago)
- Last Synced: 2025-04-03T01:11:08.575Z (11 months ago)
- Topics: capture-the-flag, crack, cracking, ctf, dcipher, decipher, hash, md5, nodejs, password, rainbow-table, sha
- Language: JavaScript
- Homepage:
- Size: 432 KB
- Stars: 155
- Watchers: 4
- Forks: 23
- Open Issues: 10
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# dcipher [](https://travis-ci.org/k4m4/dcipher)
> Decipher hashes using online rainbow & lookup table attack services.
## Install
```
~ ❯❯❯ npm install dcipher
```
## Usage
```js
const dcipher = require('dcipher');
dcipher('21232f297a57a5a743894a0e4a801fc3').then(plaintext => {
console.log(plaintext);
//=> 'admin'
});
dcipher('8843d7f92416211de9ebb963ff4ce28125932878').then(plaintext => {
console.log(plaintext);
//=> 'foobar'
});
dcipher('dW5pY29ybg==').then(plaintext => {
console.log(plaintext);
//=> 'unicorn'
});
```
## API
### dcipher(hash, [options])
Returns the plaintext value of a hash.
#### hash
Type: `string`
Hash to decipher.
#### options
##### timeout
Type: `number`
Timeout in milliseconds after which a request is considered failed. Default: `5000`.
## Supported Hashes
- [`MD5`](https://github.com/k4m4/md5-regex)
- [`SHA1`](https://github.com/k4m4/sha-regex)
- [`SHA224`](https://github.com/k4m4/sha-regex)
- [`SHA256`](https://github.com/k4m4/sha-regex)
- [`SHA384`](https://github.com/k4m4/sha-regex)
- [`SHA512`](https://github.com/k4m4/sha-regex)
- [`RIPEMD320`](https://github.com/k4m4/ripemd-regex)
## Supported Encodings
- [`Base64`](https://github.com/kevva/base64-regex)
## Credits
- `dcipher` depends on the following online rainbow table services:
- [Hash Toolkit](https://hashtoolkit.com) - Hash Toolkit Hash Decrypter enables you to decrypt/reverse a hash in various formats into their original text. Hashes are often used to store passwords securely in a database.
- [GromWeb](https://md5.gromweb.com) - MD5 & SHA conversion and reverse lookup service.
- [MD5Hashing](https://md5hashing.net) - Yet another hash conversion and reverse lookup service.
## Related
- [dcipher-cli](https://github.com/k4m4/dcipher-cli) - CLI for this module
## License
MIT © [Nikolaos Kamarinakis](https://nikolaskama.me)