Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
fix(encryption): add logging exp 4
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored May 11, 2022
1 parent 6bab3cc commit 4c2a776
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/sws-encryption.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ export const encryptString = async (secret, payload) => {
};

export const decryptString = async (secret, payload) => {
try {
console.log(secret, payload);
const decrypted = await tinyEnc.decrypt(secret, payload);
console.log(decrypted);
return decrypted;
} catch (err) {
console.log(err)
}
};

0 comments on commit 4c2a776

Please sign in to comment.