How can i use this library without this bug? #16
arman-bolatuly
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Hi @ArmanBulatovich, Sorry about that. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this code. I find here a bug.
` const secretKey = "plt_key";
const encryptData = encrypt(newPassword, secretKey);
localStorage.setItem("plt", encryptData);
const decryptData = decrypt(encryptData, secretKey);
console.log("encryptData: ", encryptData);
const newPasswordData = localStorage.getItem("plt");
let decryptNewPasswordData = [];
if (newPasswordData) {
decryptNewPasswordData = decrypt(newPasswordData, secretKey);
}
console.log("decryptNewPasswordData: ", decryptNewPasswordData);
There giving me these data with bug: _decryptNewPasswordData: [{"password":"h4bUxF'.tc1","success":true,"fullName":"Tom Tomi Tom","username":"tom@mail.ru"},{"password":"Hsso+*67dIS","success":true,"fullName":"Misses Robot MSROBOT","username":"ms_robot@mail.ru"},{"password":"c&PS37o$sDw","success":true,"fullName":"Jane Doe Tom","username":"janen}doe@lbil-rv!~,z"qasswnsd"9"52DjMoO'8*1!-"stcddts!:urue,!gulkNblf"9"Eudarj Dtdbqbi�Dvdarah#,"tsfqoale#:"aicvdaq@njl-rv"}]const [newPassword, setNewPassword] = useState<[]>([]);_This symbol '}' give me bug. How can I give params here to use this hash without this symbol '}' ?
Beta Was this translation helpful? Give feedback.
All reactions