![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A module wrapper to encrypt and decrypt files with aes-256-cbc
Install the module with:
$ npm install -g bloomjs
Example:
var bloom = require('bloomjs'),
path = require('path').join;
bloom.encrypt(
'bloom_winx_magix_gardenia1579535',
'winx_alfea_15795',
join(__dirname, 'fixtures', 'winx.mp4'),
join(__dirname, 'temp', 'encrypted.mp4'));
Parameter: password
Type: String
Example: bloom_winx_magix_gardenia1579535
Parameter: iv
Type: String
Example: winx_alfea_15795
Parameter: fileSource
Type: String
Example: ./fixtures/winx.mp4
Parameter: fileOutput
Type: String
Example: ./temp/encrypted.mp4
Parameter: callback
Type: Function
Example:
function(data) {
//actions
}
The 'encrypt' method is responsible for encrypt a file
How to use this method
bloom.encrypt(
'bloom_winx_magix_gardenia1579535',
'winx_alfea_15795',
join(__dirname, 'fixtures', 'winx.mp4'),
join(__dirname, 'temp', 'encrypted.mp4'));
or with callback
//If a function is passed in FileOutput,
//no file will be generated and the encrypted data is sent to this function.
bloom.encrypt(
'bloom_winx_magix_gardenia1579535',
'winx_alfea_15795',
join(__dirname, 'fixtures', 'winx.mp4'),
function(data) {
//actions
});
bloom.encrypt(
'bloom_winx_magix_gardenia1579535',
'winx_alfea_15795',
join(__dirname, 'fixtures', 'winx.mp4'),
join(__dirname, 'temp', 'encrypted.mp4'),
function(data) {
//actions
});
Parameter: password
Type: String
Example: bloom_winx_magix_gardenia1579535
Parameter: iv
Type: String
Example: winx_alfea_15795
Parameter: fileSource
Type: String
Example: ./temp/encrypted.mp4
Parameter: fileOutput
Type: String
Example: ./temp/decrypted.mp4
Parameter: callback
Type: Function
Example:
function(data) {
//actions
}
The 'decrypt' method is responsible for decrypt a file
How to use this method
bloom.decrypt(
'bloom_winx_magix_gardenia1579535',
'winx_alfea_15795',
join(__dirname, 'fixtures', 'encrypted.mp4'),
join(__dirname, 'temp', 'decrypted.mp4'));
or with callback
bloom.encrypt(
'bloom_winx_magix_gardenia1579535',
'winx_alfea_15795',
join(__dirname, 'fixtures', 'encrypted.mp4'),
join(__dirname, 'temp', 'decrypted.mp4'),
function(data) {
//actions
});
$ bloom encrypt -s fixtures/winx.mp4 -o temp/encrypted.mp4 -p bloom_winx_magix_gardenia1579535 -i winx_alfea_15795
$ bloom decrypt -s temp/encrypted.mp4 -o temp/decrypted.mp4 -p bloom_winx_magix_gardenia1579535 -i winx_alfea_15795
Please submit all issues and pull requests to the chrisenytc/bloom repository!
If you have any problem or suggestion please open an issue here.
The MIT License
Copyright (c) 2014, Christopher EnyTC
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A module wrapper to encrypt and decrypt files with aes-256-cbc
We found that bloomjs 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.