Skip to content

Instantly share code, notes, and snippets.

View aleksei140888's full-sized avatar
👾

Oleksii aleksei140888

👾
View GitHub Profile
@tuliocasagrande
tuliocasagrande / cognito-change-password-challenge.py
Created February 18, 2020 12:57
Responds to the new password challenge on Amazon Cognito
import boto3
def generate_password(length=16):
"""Generate a random alphanumeric password.
More recipes and best practices can be found here:
https://docs.python.org/3/library/secrets.html#recipes-and-best-practices.
Args: