Conversation
gigamonkey
left a comment
There was a problem hiding this comment.
This doesn't quite run. The idea looks basically right but you need to fix the errors.
|
|
||
| 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 |
There was a problem hiding this comment.
This line is a bit confused. You've got too many things going on here.
There was a problem hiding this comment.
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.
|
|
||
| FILE=columns2.txt | ||
|
|
||
| for ((i = 1; i <= ${#$1}; i++)); do |
There was a problem hiding this comment.
This line contains a syntax error.
gigamonkey
left a comment
There was a problem hiding this comment.
You should write a solution script and try this. It doesn't actually work. See if you can debug it.
|
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. |
No description provided.