You are not logged in.
Pages: 1
Hi,
I just could register at this forums but it was really hard because the security question one has to answer can not be answered right by just entering
date -u +%V$(uname)|sha256sum|sed 's/\W//g'
in a terminal. After a lot of attempts I found out that there has to be something wrong with the serverside execution of the sed part. I could only register successfully by omitting the sed part. So instead of entering just the hash value as the answer, one has to enter the complete output of
date -u +%V$(uname)|sha256sum
That means
# doesn't work
b767e3bd870dbdf1a06d1a90e059f490ad024936c5424cd01ada2df947d4783b
# works
b767e3bd870dbdf1a06d1a90e059f490ad024936c5424cd01ada2df947d4783b -
Offline
Seems like https://bbs.archlinux.org/viewtopic.php?pid=1250555 again.
Offline
sed is only guaranteed to support POSIX BRE, and I cannot see \W defined there. \W is part of pcre.
There are some alternative commands we could use:
cut -d" " -f1
sed "s/[^[:alnum:]]//g"
sed "s/[^[:xdigit:]]//g"
Last edited by progandy (2014-03-10 02:28:37)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Pages: 1