Socket
Socket
Sign inDemoInstall

yaml-crypt

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yaml-crypt - npm Package Compare versions

Comparing version 0.6.3 to 0.6.4

16

package.json
{
"name": "yaml-crypt",
"version": "0.6.3",
"version": "0.6.4",
"description": "Encrypt and decrypt YAML documents",

@@ -31,3 +31,3 @@ "license": "MIT",

"pkginfo": "^0.4.1",
"tmp": "^0.1.0",
"tmp": "^0.2.1",
"urlsafe-base64": "^1.0.0"

@@ -37,8 +37,12 @@ },

"chai": "^4.1.2",
"coveralls": "^3.0.9",
"coveralls": "^3.1.0",
"eslint": "^6.8.0",
"mocha": "^7.1.0",
"nyc": "^15.0.0",
"prettier": "^1.19.1"
"mocha": "^7.1.2",
"nyc": "^15.0.1",
"prettier": "^2.0.5"
},
"prettier": {
"trailingComma": "none",
"arrowParens": "avoid"
}
}

@@ -10,3 +10,3 @@ const fernet = require("fernet");

const setIV = fernet.Token.prototype.setIV;
fernet.Token.prototype.setIV = function() {
fernet.Token.prototype.setIV = function () {
const iv = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15];

@@ -16,3 +16,3 @@ setIV.apply(this, [iv]);

const setTime = fernet.Token.prototype.setTime;
fernet.Token.prototype.setTime = function() {
fernet.Token.prototype.setTime = function () {
setTime.apply(this, [1000]);

@@ -23,7 +23,5 @@ };

function decryptBranca(key, msg) {
return branca(key)
.decode(msg)
.toString();
return branca(key).decode(msg).toString();
}
module.exports = { setupCrypto, decryptBranca };
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc