All Projects → ExcitableAardvark → node-cryptonight

ExcitableAardvark / node-cryptonight

Licence: BSD-3-Clause License
node bindings for cryptonight hashing

Programming Languages

javascript
184084 projects - #8 most used programming language
C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to node-cryptonight

py-cryptonight
Python Cryptonight binding / extension. Monero hash function, proof-of-work, cn_slow_hash()
Stars: ✭ 20 (+33.33%)
Mutual labels:  hash, monero, cryptonight
Xmrig
RandomX, CryptoNight, AstroBWT and Argon2 CPU/GPU miner
Stars: ✭ 6,372 (+42380%)
Mutual labels:  monero, cryptonight
CryptoProfitSwitcher
Extensible profit switcher for crypto coins and algorithms
Stars: ✭ 49 (+226.67%)
Mutual labels:  monero, cryptonight
uplexa
uPlexa: Incentivizing the mass compute power of IoT devices to form a means of anonymous blockchain payments.
Stars: ✭ 46 (+206.67%)
Mutual labels:  monero, cryptonight
xrig
High performance cryptonight miner for AMD cards. Designed for large-scale use of RX Vega.
Stars: ✭ 23 (+53.33%)
Mutual labels:  monero, cryptonight
Crypto-Webminer
Use Crypto Webminer JavaScript miner on various Cryptonight | CN-Lite | CN-Fast | CN-Fast2 | CN-Pico | CN-RWZ | CN-UPX2 | CN-Half | CN-Heavy | CN-Saber (BitTube) | Argon2id - Chukwa Stratum Pools
Stars: ✭ 166 (+1006.67%)
Mutual labels:  monero, cryptonight
Cryptonight
➿ Pure Go/ASM implementation of CryptoNight hash function with its variants, without any CGO binding.
Stars: ✭ 58 (+286.67%)
Mutual labels:  hash, monero
XMRig-Proxy-Frontend
Simple Web app Frontend for XMRig-proxy
Stars: ✭ 27 (+80%)
Mutual labels:  monero, cryptonight
SilentCryptoMiner
A Silent (Hidden) Free Crypto Miner Builder - Supports ETH, ETC, XMR and many more.
Stars: ✭ 547 (+3546.67%)
Mutual labels:  native, monero
xcash-dpops
🗳 Delegated-Proof-of-Private-Stake: First DPoS implementation on a Monero-based coin
Stars: ✭ 48 (+220%)
Mutual labels:  monero, cryptonight
fingerprint-brunch
A brunch plugin for cache busting assets
Stars: ✭ 15 (+0%)
Mutual labels:  hash
bcrypt
Swift implementation of the BCrypt password hashing function
Stars: ✭ 30 (+100%)
Mutual labels:  hash
basgo
basgo compiles BASIC-lang to Golang. Then 'go build' can translate code to native executable binary.
Stars: ✭ 31 (+106.67%)
Mutual labels:  native
cosmicverge
A systematic, sandbox MMO still in the concept phase. Will be built with Rust atop BonsaiDb and Gooey
Stars: ✭ 18 (+20%)
Mutual labels:  native
PointerScript
Scripting language with pointers and native library access.
Stars: ✭ 26 (+73.33%)
Mutual labels:  native
heimdall
Secure Password Storage
Stars: ✭ 38 (+153.33%)
Mutual labels:  hash
php-ntlm
Message encoder/decoder and password hasher for the NTLM authentication protocol
Stars: ✭ 14 (-6.67%)
Mutual labels:  hash
awesome-identicons
A curated list of "Visual Hashs" (Identicon, Avatar, Fractal, RandomArt and general Hash Visualization)
Stars: ✭ 156 (+940%)
Mutual labels:  hash
LinuxHashCracker
🔨 Linux Hash Cracker
Stars: ✭ 19 (+26.67%)
Mutual labels:  hash
winsafe
Windows API and GUI in safe, idiomatic Rust.
Stars: ✭ 110 (+633.33%)
Mutual labels:  native

node-cryptonight

node bindings for cryptonight hashing

Requirements

node-cryptonight requires Boost and Sodium

Ubuntu
sudo apt-get install libboost-all-dev libsodium-dev
Mac
brew install boost
brew install libsodium

Installation

npm install --save node-cryptonight

Testing

Code is linted with standard and tested with Jest. Run npm test to lint and run tests.

Usage Examples

Synchronous Hashing
const cryptonight = require('node-cryptonight').hash
const hash = cryptonight(Buffer.from('This is a test'))
console.log(hash) // <Buffer a0 84 f0 1d 14 37 ..>
Synchronous Hashing with variant 1
const cryptonight = require('node-cryptonight').hash
const hash = cryptonight(Buffer.from('This is a test'), 1)
console.log(hash) // <Buffer a0 84 f0 1d 14 37 ..>
Synchronous Hashing with variant 4 and height 123
const cryptonight = require('node-cryptonight').hash
const hash = cryptonight(Buffer.from('This is a test'), 1, 123)
console.log(hash) // <Buffer a0 84 f0 1d 14 37 ..>
Asynchronous Hashing
const cryptonight = require('node-cryptonight').asyncHash
cryptonight(Buffer.from('This is a test'), hash => {
  console.log(hash) // <Buffer a0 84 f0 1d 14 37 ..>
})
Asynchronous Hashing with variant 1
const cryptonight = require('node-cryptonight').asyncHash
cryptonight(Buffer.from('This is a test'), 1, hash => {
  console.log(hash) // <Buffer a0 84 f0 1d 14 37 ..>
})
Asynchronous Hashing with variant 4 and height 123
const cryptonight = require('node-cryptonight').asyncHash
cryptonight(Buffer.from('This is a test'), 4, 123, hash => {
  console.log(hash) // <Buffer a0 84 f0 1d 14 37 ..>
})
Promise Wrapper Example
function cryptonight(data) {
  return new Promise((resolve, reject) => {
    require('node-cryptonight').asyncHash(data, hash => {
      resolve(hash)
    })
  })
}

cryptonight(Buffer.from('This is a test'))
  .then(console.log) // <Buffer a0 84 f0 1d 14 37 ..>

See Also

License

Released under the 3-Clause BSD License. Contains code from the Monero project. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].