annotate bin/password @ 12353:9e69a48ed481 draft

<wib_jonas> `` perl -pi -e \'s/xrange/range/\' /hackenv/bin/password
author HackEso <hackeso@esolangs.org>
date Wed, 04 Nov 2020 14:38:13 +0000
parents cf652da78b89
children
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
12353
9e69a48ed481 <wib_jonas> `` perl -pi -e \'s/xrange/range/\' /hackenv/bin/password
HackEso <hackeso@esolangs.org>
parents: 12352
diff changeset
6 print("".join(secrets.choice(string.ascii_lowercase) for _ in range(15)))