Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@orion-js/crypto
Advanced tools
This project provides utility functions for symmetric and asymmetric encryption, decryption, signing, and hashing. It uses the crypto and bcryptjs libraries for cryptographic operations.
Readme
This project provides utility functions for symmetric and asymmetric encryption, decryption, signing, and hashing. It uses the crypto and bcryptjs libraries for cryptographic operations.
The symmetric encryption module provides functions for generating passwords and for encrypting and decrypting text. This can be used for securely storing sensitive data like user passwords.
import {symmetric} from './src/utils/symmetric'
const password = symmetric.generatePassword()
const encrypted = symmetric.encrypt('hello world', password)
const decrypted = symmetric.decrypt(encrypted, password)
The asymmetric encryption module provides functions for generating key pairs, and for encrypting and decrypting messages. This can be used for secure communication between two parties.
import {asymmetric} from './src/utils/asymmetric'
const {encryptKey, decryptKey} = asymmetric.generateKeys()
const encrypted = asymmetric.encrypt(encryptKey, 'hello')
const decrypted = asymmetric.decrypt(decryptKey, encrypted)
The signing module provides functions for signing a payload and for verifying a signed payload. This can be used to ensure the integrity and authenticity of data.
import {sign} from './src/utils/sign'
const secret = 'my_secret'
const payload = 'hello world'
const checksum = sign.sign(payload, secret)
const isValid = sign.verify(payload, checksum, secret)
The hashing module provides functions for creating a hash from a text and for comparing a text with a hash. This can be used for storing sensitive data like passwords in a secure way.
import {hash} from './src/utils/hash'
const text = 'hello world'
const hashed = hash.hash(text)
const isSame = hash.compare(text, hashed)
The hashing with salt module provides functions for creating a hash from a password with a salt and for comparing a password with a hash. This can be used for storing user passwords in a secure way.
import {hashWithSalt} from './src/utils/hashWithSalt'
const password = 'password'
const hashed = hashWithSalt.hash(password)
const isSame = hashWithSalt.compare(password, hashed)
FAQs
This project provides utility functions for symmetric and asymmetric encryption, decryption, signing, and hashing. It uses the crypto and bcryptjs libraries for cryptographic operations.
The npm package @orion-js/crypto receives a total of 242 weekly downloads. As such, @orion-js/crypto popularity was classified as not popular.
We found that @orion-js/crypto demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.