Skip to content

Last-column#19

Open
lashlockbhs wants to merge 5 commits intogigamonkey:mainfrom
lashlockbhs:main
Open

Last-column#19
lashlockbhs wants to merge 5 commits intogigamonkey:mainfrom
lashlockbhs:main

Conversation

@lashlockbhs
Copy link
Copy Markdown

No description provided.

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.

This doesn't quite run. The idea looks basically right but you need to fix the errors.

Comment thread build/last-column.sh Outdated

for ((i = 1; i <= ${#$1}; i++)); do
tmp=$(mktemp)
paste -d '' "$FILE" <(printf "%s\n" "$(fake_id "$1" | fold -w1)$("$1" | fold -w1)") > "$tmp" #adds 1 character of secret to end of 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.

This line is a bit confused. You've got too many things going on here.

Comment thread build/STEPS
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.

Whoops. I just noticed that I messed up some earlier merge and lost a linebreak between spaced-out and first-line. You'll need to fix that for make build to run once you've fixed your script.

Comment thread build/last-column.sh Outdated

FILE=columns2.txt

for ((i = 1; i <= ${#$1}; i++)); do
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.

This line contains a syntax error.

@lashlockbhs lashlockbhs changed the title Main Last-column Feb 11, 2025
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.

You should write a solution script and try this. It doesn't actually work. See if you can debug it.

@lashlockbhs
Copy link
Copy Markdown
Author

Ah damn okay, I may be confused on what fold does and printf does.

@gigamonkey
Copy link
Copy Markdown
Owner

gigamonkey commented Feb 12, 2025

Ah damn okay, I may be confused on what fold does and printf does.

Actually those are fine. You're just missing one step at the end of hiding the secret. If you try to write a solution you'll discover you can't actually recover the secret because it's not in the file.

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