Socket
Socket
Sign inDemoInstall

ft-encryption

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ft-encryption - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

lib/encryption.js

@@ -23,4 +23,4 @@ 'use strict';

let cipher = crypto.createCipher(this.algorithm, this.key);
let data = cipher.update(str, 'utf8', 'base64');
data += cipher.final('base64');
let data = cipher.update(str, 'utf8', 'hex');
data += cipher.final('hex');
return data;

@@ -37,3 +37,3 @@ };

let result = null;
let str = cipher.update(encrypted, 'base64', 'utf8');
let str = cipher.update(encrypted, 'hex', 'utf8');
str += cipher.final('utf8');

@@ -40,0 +40,0 @@ result = JSON.parse(str);

{
"name": "ft-encryption",
"version": "1.0.1",
"version": "1.0.2",
"description": "encryption wrapper",

@@ -5,0 +5,0 @@ "main": "lib/encryption.js",

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