public function validOtp($otp) {
    $length  = strlen($otp);

    /* Check length. */
    if($length > 48 || $length < 32) {
      return false;
    }

    /* Check for printable charcters (no whitespace). */
    return ctype_graph($otp);
  }