
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@tsmx/secure-config-tool
Advanced tools
Supporting command-line tool for @tsmx/secure-config.
Features:
[tsmx@localhost ]$ npm i -g @tsmx/secure-config-tool
For better convenience I recommend the installation as a global package. Though local installation and use is also possible.
[tsmx@localhost ]$ secure-config-tool genkey
9af7d400be4705147dc724db25bfd2513aa11d6013d7bf7bdb2bfe050593bd0f
[tsmx@localhost ]$ export CONFIG_ENCRYPTION_KEY=9af7d400be4705147dc724db25bfd2513aa11d6013d7bf7bdb2bfe050593bd0f
Reads an existing JSON configuration file and encrypts the values according to specified key-patterns. The result is printed to stdout, so use >
to save it in a new file.
[tsmx@localhost ]$ secure-config-tool create-file ./config.json > config-production.json
If no patterns are specified using the -p
/ --patterns
option, the standard patterns are used: 'user', 'pass', 'token'
. For each pattern a case-insensitive match is tested for each key of the JSON file to be encrypted. If the match succeeds, the value of the key is encrypted.
[tsmx@localhost ]$ secure-config-tool create-file -p "Username,Password" ./config.json > config-production.json
Same as above, but your custom patterns are used. In the example every key is tested case-insensitive against the two regex expressions /Username/
and /Password/
.
[tsmx@localhost ]$ secure-config-tool create --secret MySecret
ENCRYPTED|82da1c22e867d68007d66a23b7b748b3|452a2ed1105ec5607576b820b90aa49f
Encrypts a single value string for copy & paste to a JSON configuration file.
[tsmx@localhost ]$ secure-config-tool decrypt "ENCRYPTED|82da1c22e867d68007d66a23b7b748b3|452a2ed1105ec5607576b820b90aa49f"
MySecret
Decrypts a single value string for testing purposes.
npm install
npm test
FAQs
Command-line tool for @tsmx/secure-config.
The npm package @tsmx/secure-config-tool receives a total of 22 weekly downloads. As such, @tsmx/secure-config-tool popularity was classified as not popular.
We found that @tsmx/secure-config-tool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.