Skip to content

Instantly share code, notes, and snippets.

View chrisfcarroll's full-sized avatar
🤹‍♂️
🌍...☕...🖥️...⏳...⛪...🛌🏼

Chris F Carroll chrisfcarroll

🤹‍♂️
🌍...☕...🖥️...⏳...⛪...🛌🏼
View GitHub Profile
@chrisfcarroll
chrisfcarroll / scram_postgres_password.py
Last active May 15, 2021 22:43 — forked from jkatz/encrypt_password.py
Method to create password hashes for PostgreSQL 10+
#! /usr/bin/env python3
# Taken from https://blog.crunchydata.com/blog/how-to-upgrade-postgresql-passwords-to-scram
help= \
"""
Generate scram-sha-256 password hashes / verifiers for PostgreSQL 10+
Usage:
scram_postgres_password Username1 Password1 [, ... UsernameN PasswordN ]