Skip to content

Main#8

Open
okcoder2019 wants to merge 8 commits intogigamonkey:mainfrom
okcoder2019:main
Open

Main#8
okcoder2019 wants to merge 8 commits intogigamonkey:mainfrom
okcoder2019:main

Conversation

@okcoder2019
Copy link
Copy Markdown

Added a secret to practice encryption and decryption

Copy link
Copy Markdown
Owner

@gigamonkey gigamonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I few things I'd like you to tidy up.

Comment thread build/base64.txt Outdated

There is a unix utility for encoding and decoding base64 which you should be
able to find.
aGVsbG8K
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please unclobber this file. Look up the docs for git checkout and git show for some ways to get the old version back. There's also an entry on https://ohshitgit.com/ about this.

Comment thread testing Outdated
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this file for? It probably shouldn't be added to git.

Comment thread build/enc.sh Outdated

echo "$1" | openssl enc -aes-256-cbc -a -salt -pass pass:"$key" -out encrypted.txt

echo "Secret is encrypted in $PUZZLE/encrypted.txt \n The password is in $PUZZLE/password, but thats obfuscaated too hidden too. Think of the last challenge..."
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, the secret should be one line of text since we don't know that it's going to be hidden in a way be the previous step in the puzzle that will work with a multi-line hint.

I have plans for a v2 that's going to allow for much more free form secrets and clues but for now, make this one line.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it occurs to me that this clue is probably not enough information for the player to write a solution: you need to give some information like "encrypted with AES-256 in chaining block mode with salt and the key you'll find in $PUZZLE/password, but reversed."

Comment thread build/enc.sh Outdated
echo "$key" > $PUZZLE/password


echo "$1" | openssl enc -aes-256-cbc -a -salt -pass pass:"$key" -out encrypted.txt
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be good to throw a -pbkdf2 in there so you don't get warnings about deprecated key derivations being used.

Copy link
Copy Markdown
Owner

@gigamonkey gigamonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your step script is actually logically flawed. And there are some issues with your solution script. You should try to get them working together.

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.

2 participants