jdhitsolutions / PSQuizMaster

A module for creating and running quizzes to learn PowerShell
Other
10 stars 0 forks source link

Encrypt or obfuscate correct answers into JSON #3

Open carloscondit opened 11 months ago

carloscondit commented 11 months ago

It would be nice to have an option to encrypt or obfuscate the correct answers in the JSON file.

jdhitsolutions commented 11 months ago

I've added commands to handle this in v1.1.0. Update the module from the PowerShell gallery and let me know what you think.

carloscondit commented 11 months ago

It works. Thank you! But there is a problem. If the answer is given as a number, it remains unchanged.

jdhitsolutions commented 11 months ago

Hmmm. I hadn't thought about that. Let me see what I can come up with.

jdhitsolutions commented 11 months ago

I see the problem. Let me see how to fix it.

carloscondit commented 11 months ago

I see the problem. Let me see how to fix it.

It was cool to have the wrong answers encrypted too. Knowing all the wrong answers makes it too easy to figure out the right one.

jdhitsolutions commented 11 months ago

I think I have this fixed. Update the module to version 1.2.0. I suggest starting with a plaintext quiz file and then run Protect-PSQuizFile. Running Unprotect-PSQuizFile should also work.

carloscondit commented 11 months ago

I think I have this fixed. Update the module to version 1.2.0. I suggest starting with a plaintext quiz file and then run Protect-PSQuizFile. Running Unprotect-PSQuizFile should also work.

Now it works with numbers. Thanks! Perhaps you might consider the option of defending all the answers? Knowing all the wrong answers makes it too easy to figure out the right one.

jdhitsolutions commented 11 months ago

I see your point. It wouldn't be that difficult to make that change.