
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
const Cryptor = require('fine-crypt');
// create secret word
const secret = 'top_secret_word';
// create a new cryptor object
const cryptor = new Cryptor(secret);
// select a text or id for encryption
// encrypted text should contain only UTF-16 characters
// with codes between 33 and 1023
// e.g. latin letters, digits and basic punctuation marks
const initText = '3 Men in a Boat (To Say Nothing of the Dog),';
// encrypt the text, encrypted text is a Base36 string
const encryptedText = cryptor.encrypt(initText);
// or you can redefine the secret word:
const encryptedText = cryptor.encrypt(initText, secret);
// decrypt the text
const decryptedText = cryptor.decrypt(encryptedText);
// or you can redefine the secret word
const decryptedText = cryptor.decrypt(encryptedText, secret);
$ npm install fine-crypt
ISC
FAQs
simple encrypt/decrypt library
The npm package fine-crypt receives a total of 1 weekly downloads. As such, fine-crypt popularity was classified as not popular.
We found that fine-crypt 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.