SourceString

Random string generator that uses source string


Keywords
string, str, generator, password, passphrase, hash
License
MIT
Install
pip install SourceString==1.3.1

Documentation

SourceString

Random string generator that uses source string

Why use it?

I have no idea why would you use it, but I'll be happy if you will. I personally use it to generate long, secure and easy-to-restore passwords

Installation / Updating

pip install SourceString
pip install --upgrade SourceString

Demo

import SourceString
SourceString.demo()

Usage

from SourceString import Generator

generator = Generator("Hello, World!")
string = generator.generate(10)  # Sj4WS93zPX

generator.set_rules(digits=True, lowercase=False, uppercase=False)
string = generator.generate(10)  # 9402110588

generator.set_salt(b"Salt")
string = generator.generate(10)  # 2033888973

generator.set_custom_alphabet("OhWow")
string = generator.generate(10)  # WwowoOwhOO