mirror of
https://github.com/kennethreitz-archive/sshout.git
synced 2026-06-05 23:40:16 +00:00
21 lines
366 B
Python
21 lines
366 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
sshit.core
|
|
~~~~~~~~~~
|
|
|
|
This module contains the primary functionality of sshit.
|
|
"""
|
|
|
|
import random
|
|
|
|
ALPHABET = 'abcdefghijklmnoprstuvwyxzABCDEFGHIJKLMNOPRSTUVWXYZ'
|
|
|
|
|
|
def random_password(length=6):
|
|
"""Returns a random ASCII password of given length."""
|
|
|
|
p = ''.join([random.choice(ALPHABET) for i in range(length)])
|
|
return p
|
|
|