Gerar senhas com um alto nível de segurança nunca foi tão fácil. Para tal, basta utilizar o código abaixo:
import string
from random import choice
size = 16
''.join([choice(string.letters + string.digits) for i in range(size)])
hasta!
$ sudo apt-get install libjpeg-dev libpng-dev zlib1g-dev liblcms1-dev python-dev
$ cd jpeg-8c $ ./configure --enable-shared $ make $ make install
1 2 3 | $ tar -xvf PIL-1.2a0-20110108.tar.gz $ cd PIL-1.2a0 $ nano setup.py |
JPEG_ROOT = “/usr/local/include” ZLIB_ROOT = “/usr/local/include”
1 2 3 | $ python setup.py build_ext -i $ python selftest.py $ sudo python setup.py install |
1 2 | $ import PIL $ import _imaging |