Skip to content

PowerShell-module for displaying strings as QR-code

License

Notifications You must be signed in to change notification settings

erlwes/PSStringToQRCode

Repository files navigation

PSStringToQRCode

PowerShell-module for converting text strings to QR-code and display it on screen, or save it as a .PNG-image.

All the heavy lifting is done these Git-hub projects:

All credits to the respectfull creators of the assemly-code used. I simply pieced it together, so that it will perform a very specific task in PowerShell :)

Install

install-Module -Name PSStringToQRCode

Functions

🟢 Convert-StringToQR

Converts text strings to QR-code and display it on screen.

Parameter Description
text (mandatory) The input text (string)
height Height in px(int)
width Width in px(int)
SaveImageOutput Outputs PNG-file to specified path. Path must contain filename .png-extension (string)

Usage

Generates a 200x200px QR-code and saves it as .png-image file.

"let's get schwifty" | Convert-StringToQR -SaveImageOutput c:\temp\swifty.png -height 200 -width 200

Generates a QR-code and displays it on the screen

Convert-StringToQR -text "manage-bde –unlock c: -RecoveryPassword 002130-563959-533643-315590-484044-259380-247291-123563"

Visual examples

🔵 Example 1

This:

image

Results in this:

image

Another one QR code could contain cd c:\windows\system32\drivers\crowdstrike && del c-00000291*.sys etc.

🔵 Example 2

This:

image

Results in this:

image

About

PowerShell-module for displaying strings as QR-code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published