2023-01-24 22:49:53 +04:00

13 lines
357 B
Python

import qrcode
def generate_qr(password):
qr = qrcode.QRCode()
qr.add_data('password: '+password)
qr.make(fit=True)
img = qr.make_image(fill_color="white", back_color="black")
img.save("qr.png")
def generate_qr_text(password):
import qrcode
qr = qrcode.QRCode()
qr.add_data('password: '+password)
return(qr.print_ascii())