Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
crypto-props
Advanced tools
Encrypt/decrypt values from given properties of an object
const code = require('crypto-props')
const data = {
id: 123456,
text: 'Så vakker var aldri natten'
}
const encryptOptions = {
secret: 'Louie Louie oh no I got to go Louie Louie oh no I got to go',
data: data,
method: 'encrypt'
}
const encrypted = code(encryptOptions)
console.log(encrypted)
// => { id: 'ce13f1936bd589bbf5be9251719db344$5ab30813af82a83fe04af171c4796e97', text: 'b1098619cc68e59c9cc2d0785d1fe035f72aa2e867d967022500d6e4d6e4e1a3$716e4e71e277601efe93f47d84bf1150' }
const decryptOptions = {
secret: 'Louie Louie oh no I got to go',
data: encrypted,
method: 'decrypt'
}
const decrypted = code(decryptOptions)
console.log(decrypted)
// => {id: '123456', text: 'Så vakker var aldri natten'}
const options = {
secret: 'string' // Secret for encrypt/decrypt,
data: {object} // Object for encryption/decryption,
method: 'string' // 'encrypt' or 'decrypt',
exclude: [array] // array of property keys to exclude from encryption/decryption,
include: [array] // array of property keys to include from encryption/decryption
}
FAQs
Encrypt/decrypt values from given properties of an object
We found that crypto-props demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.