\documentclass[a4paper]{article}

\usepackage{qrcode}
\usepackage{parskip}
\usepackage{ifthen}
\renewcommand{\familydefault}{\sfdefault}
\usepackage[hidelinks]{hyperref}

\usepackage{geometry}
\geometry{
  a4paper,
  left=20mm,
  right=20mm,
  top=20mm,
  bottom=20mm,
}

\def\ssid{YourSSID}
\def\password{YourPassword}
\def\encryption{WPA}
\def\hidden{false}

\begin{document}

\centering
\huge

\fbox{
  \begin{minipage}[c][18.3cm][c]{13cm}
    \centering
    % \fbox{
      \begin{minipage}[c][17.1cm][c]{11.8cm}
        \centering
        \qrcode*[height=6cm, level=H, padding]{WIFI:S:\ssid;T:\encryption;P:\password;H:\hidden;;}

        \vspace{1cm}

        SSID: \ssid

        Password: \texttt{\password{}}
      \end{minipage}
    % }
  \end{minipage}
}

\end{document}
