Skip to content

#001: Fix issues with decryption of encrypted data#6

Merged
ajimae merged 2 commits intomasterfrom
fix-decryption-issues-#iss-001
Mar 5, 2020
Merged

#001: Fix issues with decryption of encrypted data#6
ajimae merged 2 commits intomasterfrom
fix-decryption-issues-#iss-001

Conversation

@ajimae
Copy link
Copy Markdown
Owner

@ajimae ajimae commented Mar 5, 2020

Work done on this PR

  • fix issues encountered in decrypting data in mobile apps
  • refactore code and remove redundant code blocks
  • code synthax was improved for readability, consistency and security

Change log

ass of version 1.1.1 you cannot destructure encrypt and decrypt you will have to import the ncrypt-js and invoke the constructor with a secretKey and then you can now invoke the encrypt and decrypt methods on the created object.

- var { encrypt, decrypt } =  require("ncrypt-js");

+ var ncrypt = require("ncrypt-js");
+ var ncryptObject = new ncrypt("_secretKey");

+ ncryptObject.encrypt(data);
+ ncryptObject.decrypt(encryptedData);

ajimae added 2 commits March 5, 2020 20:05
- fix issues encountered in decrypting data in mobile apps
- refactore code and remove unwanted code blocks
- code synthax was improved for readability, consistency and security
@ajimae ajimae merged commit 9c06f24 into master Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant