npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

rhash

v0.0.2

Published

rHash | Data Encryption | by Swôth#9990

Downloads

6

Readme

rHash® | Data Encryption




Copyright © 2020 | Apache 2.0


Developer / Geliştirici: Swôth#9990




Usage / Kullanım




EN: First we have to define the package.
TR: İlk olarak modülü tanımlamalıyız.
const rHash = require('rhash')

EN: Let's encrypt a text.
TR: Bir metni şifreleyelim.
const rHash = require('rhash')

//You can write whatever you want here.
//Buraya istediğinizi yazabilirsiniz.
const text = "Hello world!"

//If you want to use our ready-made encryption method, type rHash.key("RHS-128") or type your own key.
//Hazır şifreleme yöntemini kullanmak isterseniz rHash.key("RHS-128") yazın veya kendi istediğiniz bir key yazın.
const key = rHash.key("RHS-128") //or const key = "mySuperSecretKey"
const encryptedText = rHash.hash(text, key)
console.log(encryptedText) // Console: 75585151521d4a524f51591c

EN: Use of encryption in login system.
TR: Şifrelemenin giriş sisteminde kullanımı.
const rHash = require('rhash')

const hashedPass = rHash.hash("normalPassword", "superSecretKey")
const formInput = "test123" // invalid password

if (rHash.hash(formInput, "superSecretKey") === hashedPass) {
	console.log("Logged in!")
} else {
	console.log("Invalid Password!")
}

EN: Let's decrypt an encrypted code.
TR: Şifreli bir kodun şifresini çözelim.
const rHash = require('rhash')

//You can write whatever you want here.
//Buraya istediğinizi yazabilirsiniz.
const text = "Hello world!"

//If you want to use our ready-made encryption method, type rHash.key ("RHS-128") or type your own key.
//Hazır şifreleme yöntemini kullanmak isterseniz Hash.key("RHS-128") yazın veya kendi istediğiniz bir key yazın.
const key = rHash.key("RHS-128") //or const key = "mySuperSecretKey"
const encryptedText = rHash.hash(text, key) // this is encrypted code / bu şifrelenmiş kod
console.log(encryptedText) // Console: 75585151521d4a524f51591c

//The key must be the same key used when encrypting!
//Key şifrelerken kullanılan key ile aynı olmalıdır!
const decryptedText = rHash.unhash(encryptedText, key) 

console.log(decryptedText) // Console: Hello world!



Rules / Kurallar




(EN) 1 - The key used for encryption and the key used for decryption must be the same.
(TR) 1 - Şifrelenirken kullanılan anahtar ile çözerken kullanılan anahtar aynı olmalıdır.

(EN) 2 - The text to be encrypted must not contain UTF-8 characters. (Except Turkish characters)
(TR) 2 - Şifrelenecek metin UTF-8 karakterleri içermemelidir. (Türkçe karakterler hariç)

(EN) 3 - Do not share the key you are using, otherwise they may decrypt it.
(TR) 3 - Kullandığınız anahtarı sakın paylaşmayın aksi takdirde şifresini çözebilirler.

(EN) 4 - The key length of ready encryption methods is more than 750.
(TR) 4 - Hazır şifreleme yöntemlerinin anahtarının uzunluğu 750'den fazladır.



Updates / Güncellemeler




0.0.2 ▸ The encryption system has been strengthened!


0.0.1 ▸ Package created and published on NPM




by Swôth#9990 (Apache 2.0)