You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building a small script which will take a secret from the user, and validate that it was correct before attempting to decrypt the main data.
To do this I need to be able to try a secret that may not be the correct one, attempt to decrypt a pre encrypted string that will result in a known value, and it will only result in the correct check string if the secret is right.
If at any point I instantiate a second instance of Cryptr (for example if the user gets it wrong), the program crashes with “Unable to read options file: Cannot read properties of undefined (reading decrypt)”. This means once I instantiate a Cryptr instance with one secret, it is then impossible for me to ever use a different secret.
The text was updated successfully, but these errors were encountered:
Hi,
I am building a small script which will take a secret from the user, and validate that it was correct before attempting to decrypt the main data.
To do this I need to be able to try a secret that may not be the correct one, attempt to decrypt a pre encrypted string that will result in a known value, and it will only result in the correct check string if the secret is right.
If at any point I instantiate a second instance of Cryptr (for example if the user gets it wrong), the program crashes with “Unable to read options file: Cannot read properties of undefined (reading decrypt)”. This means once I instantiate a Cryptr instance with one secret, it is then impossible for me to ever use a different secret.
The text was updated successfully, but these errors were encountered: