
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
sypher-util
Advanced tools
Strong Cipherer and Decipherer for text, objects, streams and buffers
yarn add sypher-util
const { cipher } = require('sypher')
const password = 'password'
const key = '01976eaa057ba336a9478ddc5bd9a5dd4ebbdb3256f97c7d2f1ca7fee3e0d0eb'
cipher(password, 'aes-256-cbc', key).then(({ content, iv }) => {
// Encrypted content is in `content`
// Generated IV is in `iv`
})
const { cipher } = require('cypher')
const { createReadStream } = require('fs')
const source = createReadStream('test.txt')
const key = '01976eaa057ba336a9478ddc5bd9a5dd4ebbdb3256f97c7d2f1ca7fee3e0d0eb'
cipher(source, 'aes-256-cbc', key).then(({ content, stream, iv }) => {
// Encrypted content is in `content`
// Piping stream is in `stream
// Generated IV is in `iv`
})
const { decipher } = require('sypher')
const key = '01976eaa057ba336a9478ddc5bd9a5dd4ebbdb3256f97c7d2f1ca7fee3e0d0eb'
const iv = Buffer.from('11bef69d2d16fbb1', 'hex')
const ciphered = '...'
decipher(ciphered, 'aes-256-cbc', key, iv).then(({ content }) => {
// Deciphered content is in `content`
})
const { decipher } = require('sypher')
const { createWriteStream } = require('fs')
const source = createReadStream('ciphered.txt')
const key = '01976eaa057ba336a9478ddc5bd9a5dd4ebbdb3256f97c7d2f1ca7fee3e0d0eb'
const iv = Buffer.from('11bef69d2d16fbb1', 'hex')
decipher(source, 'aes-256-cbc', key, iv).then(({ content, stream }) => {
// Encrypted content is in `content`
// Piping stream is in `stream`
})
This software is release under the GPL-3.0 license. Please see the LICENSE file for further information.
FAQs
Strong cipherer and decipherer
The npm package sypher-util receives a total of 3 weekly downloads. As such, sypher-util popularity was classified as not popular.
We found that sypher-util 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
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.