annotate bin/password @ 12352:cf652da78b89 draft

<wib_jonas> `` perl -pi -e \'s/print (.*)/print($1)/\' /hackenv/bin/password
author HackEso <hackeso@esolangs.org>
date Wed, 04 Nov 2020 14:37:41 +0000
parents af405b8a7235
children 9e69a48ed481
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12351
af405b8a7235 <wib_jonas> `` perl -pi -e \'s/random/secrets/;s/python/$&3/\' /hackenv/bin/password
HackEso <hackeso@esolangs.org>
parents: 12350
diff changeset
1 #!/usr/bin/python3
8878
6dff80b6fb44 <shachaf> ` echo $\'#!/usr/bin/python\\n\\nimport random\\nimport string\\n\\nprint "".join(random.choice(string.ascii_lowercase) for _ in xrange(15))\' > bin/password; chmod +x bin/password
HackBot
parents:
diff changeset
2
12351
af405b8a7235 <wib_jonas> `` perl -pi -e \'s/random/secrets/;s/python/$&3/\' /hackenv/bin/password
HackEso <hackeso@esolangs.org>
parents: 12350
diff changeset
3 import secrets
8878
6dff80b6fb44 <shachaf> ` echo $\'#!/usr/bin/python\\n\\nimport random\\nimport string\\n\\nprint "".join(random.choice(string.ascii_lowercase) for _ in xrange(15))\' > bin/password; chmod +x bin/password
HackBot
parents:
diff changeset
4 import string
6dff80b6fb44 <shachaf> ` echo $\'#!/usr/bin/python\\n\\nimport random\\nimport string\\n\\nprint "".join(random.choice(string.ascii_lowercase) for _ in xrange(15))\' > bin/password; chmod +x bin/password
HackBot
parents:
diff changeset
5
12352
cf652da78b89 <wib_jonas> `` perl -pi -e \'s/print (.*)/print($1)/\' /hackenv/bin/password
HackEso <hackeso@esolangs.org>
parents: 12351
diff changeset
6 print("".join(secrets.choice(string.ascii_lowercase) for _ in xrange(15)))