![Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack](https://cdn.sanity.io/images/cgdhsj6q/production/6af25114feaaac7179b18127c83327568ff592d1-1024x1024.webp?w=800&fit=max&auto=format)
Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
rhash
Advanced tools
Readme
Copyright © 2020 | Apache 2.0
Developer / Geliştirici:
Swôth#9990
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!
(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.
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)
FAQs
rHash | Data Encryption | by Swôth#9990
The npm package rhash receives a total of 1 weekly downloads. As such, rhash popularity was classified as not popular.
We found that rhash demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.