diff --git a/Internet_8h_source.html b/Internet_8h_source.html
index a415014ca..9d4ecb1d3 100644
--- a/Internet_8h_source.html
+++ b/Internet_8h_source.html
@@ -133,57 +133,66 @@
-
-
-
-
51 static std::string
username (std::optional<std::string> firstName = std::nullopt,
-
52 std::optional<std::string> lastName = std::nullopt);
-
-
71 static std::string
email (std::optional<std::string> firstName = std::nullopt,
-
72 std::optional<std::string> lastName = std::nullopt,
-
73 std::optional<std::string> emailHost = std::nullopt);
-
-
87 static std::string
exampleEmail (std::optional<std::string> firstName = std::nullopt,
-
88 std::optional<std::string> lastName = std::nullopt);
-
-
-
-
117 static std::string
emoji (std::optional<EmojiType> type = std::nullopt);
-
-
-
-
-
-
153 static unsigned httpStatusCode (std::optional<HttpResponseType> responseType = std::nullopt);
-
-
-
-
-
-
-
-
200 static std::string
ipv4 (IPv4Class ipv4class = IPv4Class::C);
-
-
219 static std::string
ipv4 (
const std::array<unsigned int, 4>& baseIpv4Address,
-
220 const std::array<unsigned int, 4>& generationMask);
-
-
-
-
244 static std::string
mac (
const std::string& sep =
":" );
-
-
-
-
268 static std::string
url (WebProtocol webProtocol = WebProtocol::Https);
-
-
-
-
-
-
-
+
+
34 bool upperLetters =
true ;
+
35 bool lowerLetters =
true ;
+
+
+
-
-
+
+
+
+
+
+
58 static std::string
username (std::optional<std::string> firstName = std::nullopt,
+
59 std::optional<std::string> lastName = std::nullopt);
+
+
78 static std::string
email (std::optional<std::string> firstName = std::nullopt,
+
79 std::optional<std::string> lastName = std::nullopt,
+
80 std::optional<std::string> emailHost = std::nullopt);
+
+
94 static std::string
exampleEmail (std::optional<std::string> firstName = std::nullopt,
+
95 std::optional<std::string> lastName = std::nullopt);
+
+
+
+
124 static std::string
emoji (std::optional<EmojiType> type = std::nullopt);
+
+
+
+
+
+
160 static unsigned httpStatusCode (std::optional<HttpResponseType> responseType = std::nullopt);
+
+
+
+
+
+
+
+
207 static std::string
ipv4 (IPv4Class ipv4class = IPv4Class::C);
+
+
226 static std::string
ipv4 (
const std::array<unsigned int, 4>& baseIpv4Address,
+
227 const std::array<unsigned int, 4>& generationMask);
+
+
+
+
251 static std::string
mac (
const std::string& sep =
":" );
+
+
+
+
275 static std::string
url (WebProtocol webProtocol = WebProtocol::Https);
+
+
+
+
+
+
+
+
+
+
static std::string domainName()
Generates a random domain name.
static std::string httpMethod()
Generates a random http method name.
static std::string domainWord()
Generates a random domain word.
@@ -194,16 +203,17 @@
static std::string url(WebProtocol webProtocol=WebProtocol::Https)
Generates a random url.
static std::string ipv4(IPv4Class ipv4class=IPv4Class::C)
Returns a string containing randomized ipv4 address of the given class.
static std::string exampleEmail(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt)
Generates an email address using the given person's name as base with example domain.
+static std::string password(int length=15, PasswordOptions options={})
Generates a random password-like string. Do not use this method for generating actual passwords for u...
static unsigned port()
Generates a random port.
static std::string emoji(std::optional< EmojiType > type=std::nullopt)
Returns a random emoji.
static std::string httpMediaType()
Generates a random http media type.
static std::string httpRequestHeader()
Generates a random http request header.
static std::string ipv6()
Returns a string containing randomized ipv6 address.
static unsigned httpStatusCode(std::optional< HttpResponseType > responseType=std::nullopt)
Returns a random http status code.
-static std::string password(int length=15)
Generates a random password-like string. Do not use this method for generating actual passwords for u...
static std::string email(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, std::optional< std::string > emailHost=std::nullopt)
Generates an email address using the given person's name as base.
static std::string mac(const std::string &sep=":")
Returns a generated random mac address.
static std::string protocol()
Returns a random web protocol. Either http or https.
+
diff --git a/annotated.html b/annotated.html
index 8b978b25f..80bfc65c2 100644
--- a/annotated.html
+++ b/annotated.html
@@ -130,18 +130,19 @@
C Music
C NetworkInterfaceOptions
C Number
- C Person
- C Phone
- C Sport
- C String
- C System
- C VideoGame
- ▼ C Weather
- C Pressure
- C Temperature
- C Visibility
- C WindSpeed
- C Word
+ C PasswordOptions
+ C Person
+ C Phone
+ C Sport
+ C String
+ C System
+ C VideoGame
+ ▼ C Weather
+ C Pressure
+ C Temperature
+ C Visibility
+ C WindSpeed
+ C Word
diff --git a/annotated_dup.js b/annotated_dup.js
index 29a8ab803..fd4e16bfc 100644
--- a/annotated_dup.js
+++ b/annotated_dup.js
@@ -28,6 +28,7 @@ var annotated_dup =
[ "Music", "classfaker_1_1Music.html", null ],
[ "NetworkInterfaceOptions", "structfaker_1_1NetworkInterfaceOptions.html", null ],
[ "Number", "classfaker_1_1Number.html", null ],
+ [ "PasswordOptions", "structfaker_1_1PasswordOptions.html", null ],
[ "Person", "classfaker_1_1Person.html", null ],
[ "Phone", "classfaker_1_1Phone.html", null ],
[ "Sport", "classfaker_1_1Sport.html", null ],
diff --git a/classes.html b/classes.html
index c4e37e458..c5c35d0f9 100644
--- a/classes.html
+++ b/classes.html
@@ -132,7 +132,7 @@
NetworkInterfaceOptions (faker)Number (faker)
P
-Person (faker)Phone (faker)Weather::Pressure (faker)
+PasswordOptions (faker)Person (faker)Phone (faker)Weather::Pressure (faker)
R
Airline::Range (faker)
diff --git a/classfaker_1_1Image.html b/classfaker_1_1Image.html
index 5a43db7a2..f4c600309 100644
--- a/classfaker_1_1Image.html
+++ b/classfaker_1_1Image.html
@@ -224,7 +224,7 @@ Internet ::imageUrl (800, 600)
static std::string imageUrl(unsigned width=640, unsigned height=480, std::optional< ImageCategory > category=std::nullopt)
Generates a real image url with https://loremflickr.com/.
-
+
diff --git a/classfaker_1_1Internet-members.html b/classfaker_1_1Internet-members.html
index 432e638c8..46a6f366e 100644
--- a/classfaker_1_1Internet-members.html
+++ b/classfaker_1_1Internet-members.html
@@ -113,7 +113,7 @@
ipv4 (const std::array< unsigned int, 4 > &baseIpv4Address, const std::array< unsigned int, 4 > &generationMask)faker::Internet static
ipv6 ()faker::Internet static
mac (const std::string &sep=":")faker::Internet static
- password (int length=15)faker::Internet static
+ password (int length=15, PasswordOptions options={})faker::Internet static
port ()faker::Internet static
protocol ()faker::Internet static
url (WebProtocol webProtocol=WebProtocol::Https)faker::Internet static
diff --git a/classfaker_1_1Internet.html b/classfaker_1_1Internet.html
index b7de90ec0..9353e6d10 100644
--- a/classfaker_1_1Internet.html
+++ b/classfaker_1_1Internet.html
@@ -110,9 +110,9 @@
static std::string exampleEmail (std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt)
Generates an email address using the given person's name as base with example domain.
-static std::string password (int length=15)
- Generates a random password-like string. Do not use this method for generating actual passwords for users. Since the source of the randomness is not cryptographically secure, neither is this generator.
-
+static std::string password (int length=15, PasswordOptions options={})
+ Generates a random password-like string. Do not use this method for generating actual passwords for users. Since the source of the randomness is not cryptographically secure, neither is this generator.
+
static std::string emoji (std::optional< EmojiType > type=std::nullopt)
Returns a random emoji.
@@ -308,7 +308,7 @@ Internet ::email (std::nullopt, "Howard")
-
+
static std::string email(std::optional< std::string > firstName=std::nullopt, std::optional< std::string > lastName=std::nullopt, std::optional< std::string > emailHost=std::nullopt)
Generates an email address using the given person's name as base.
@@ -712,8 +712,8 @@
-◆ password()
+
+◆ password()
diff --git a/functions_func_p.html b/functions_func_p.html
index be7b72c20..d18de797f 100644
--- a/functions_func_p.html
+++ b/functions_func_p.html
@@ -97,7 +97,7 @@
- p -
paragraph() : faker::Lorem
paragraphs() : faker::Lorem
-password() : faker::Internet
+password() : faker::Internet
pastDate() : faker::Date
phrase() : faker::Hacker
pin() : faker::Finance
diff --git a/functions_p.html b/functions_p.html
index 2c5463169..e5d5cfc9d 100644
--- a/functions_p.html
+++ b/functions_p.html
@@ -97,7 +97,7 @@
- p -
paragraph() : faker::Lorem
paragraphs() : faker::Lorem
-password() : faker::Internet
+password() : faker::Internet
pastDate() : faker::Date
phrase() : faker::Hacker
pin() : faker::Finance
diff --git a/navtreeindex0.js b/navtreeindex0.js
index e0a5c5995..481ee427d 100644
--- a/navtreeindex0.js
+++ b/navtreeindex0.js
@@ -56,14 +56,14 @@ var NAVTREEINDEX0 =
"classfaker_1_1Movie.html":[0,0,0,23],
"classfaker_1_1Music.html":[0,0,0,24],
"classfaker_1_1Number.html":[0,0,0,26],
-"classfaker_1_1Person.html":[0,0,0,27],
-"classfaker_1_1Phone.html":[0,0,0,28],
-"classfaker_1_1Sport.html":[0,0,0,29],
-"classfaker_1_1String.html":[0,0,0,30],
-"classfaker_1_1System.html":[0,0,0,31],
-"classfaker_1_1VideoGame.html":[0,0,0,32],
-"classfaker_1_1Weather.html":[0,0,0,33],
-"classfaker_1_1Word.html":[0,0,0,34],
+"classfaker_1_1Person.html":[0,0,0,28],
+"classfaker_1_1Phone.html":[0,0,0,29],
+"classfaker_1_1Sport.html":[0,0,0,30],
+"classfaker_1_1String.html":[0,0,0,31],
+"classfaker_1_1System.html":[0,0,0,32],
+"classfaker_1_1VideoGame.html":[0,0,0,33],
+"classfaker_1_1Weather.html":[0,0,0,34],
+"classfaker_1_1Word.html":[0,0,0,35],
"dir_21275a4f97039163a157995766de70c2.html":[1,0,0,0],
"dir_d44c64559bbebec7f509842c48db8b23.html":[1,0,0],
"files.html":[1,0],
@@ -124,8 +124,9 @@ var NAVTREEINDEX0 =
"structfaker_1_1FileOptions.html":[0,0,0,12],
"structfaker_1_1Helper_1_1WeightedElement.html":[0,0,0,17,0],
"structfaker_1_1NetworkInterfaceOptions.html":[0,0,0,25],
-"structfaker_1_1Weather_1_1Pressure.html":[0,0,0,33,0],
-"structfaker_1_1Weather_1_1Temperature.html":[0,0,0,33,1],
-"structfaker_1_1Weather_1_1Visibility.html":[0,0,0,33,2],
-"structfaker_1_1Weather_1_1WindSpeed.html":[0,0,0,33,3]
+"structfaker_1_1PasswordOptions.html":[0,0,0,27],
+"structfaker_1_1Weather_1_1Pressure.html":[0,0,0,34,0],
+"structfaker_1_1Weather_1_1Temperature.html":[0,0,0,34,1],
+"structfaker_1_1Weather_1_1Visibility.html":[0,0,0,34,2],
+"structfaker_1_1Weather_1_1WindSpeed.html":[0,0,0,34,3]
};
diff --git a/search/all_e.js b/search/all_e.js
index 05880f100..09201fcd1 100644
--- a/search/all_e.js
+++ b/search/all_e.js
@@ -2,22 +2,23 @@ var searchData=
[
['paragraph_0',['paragraph',['../classfaker_1_1Lorem.html#a33a5333530f8b321e5808fcadc39dd12',1,'faker::Lorem']]],
['paragraphs_1',['paragraphs',['../classfaker_1_1Lorem.html#a57d8b13b30b251ada56adcd861859b77',1,'faker::Lorem']]],
- ['password_2',['password',['../classfaker_1_1Internet.html#accf91e2599865b20e539b62661c96e23',1,'faker::Internet']]],
- ['pastdate_3',['pastDate',['../classfaker_1_1Date.html#a1dc7c608e07fdb276a1b9cc58d5bb33d',1,'faker::Date']]],
- ['person_4',['Person',['../classfaker_1_1Person.html',1,'faker']]],
- ['phone_5',['Phone',['../classfaker_1_1Phone.html',1,'faker']]],
- ['phrase_6',['phrase',['../classfaker_1_1Hacker.html#aff74c0df497fd3324347f960e7bb202d',1,'faker::Hacker']]],
- ['pin_7',['pin',['../classfaker_1_1Finance.html#a15e187cc0587b8f94c7a41e48ae87ba6',1,'faker::Finance']]],
- ['platform_8',['platform',['../classfaker_1_1VideoGame.html#a25f2f7f0df0df05fc08fb822fa36d0b5',1,'faker::VideoGame']]],
- ['port_9',['port',['../classfaker_1_1Internet.html#aa4ae235611f88b6f607b2958b49dcdd0',1,'faker::Internet']]],
- ['prefix_10',['prefix',['../classfaker_1_1Person.html#a1d4e8274664980f45ec8b474519623da',1,'faker::Person']]],
- ['preposition_11',['preposition',['../classfaker_1_1Word.html#aec3320b52da4f63cb67c394ab2c18ffe',1,'faker::Word']]],
- ['pressure_12',['pressure',['../structfaker_1_1Weather_1_1Pressure.html',1,'faker::Weather::Pressure'],['../classfaker_1_1Weather.html#a50027a529b4b24611b08a01c45e92ed1',1,'faker::Weather::pressure()']]],
- ['price_13',['price',['../classfaker_1_1Commerce.html#a7246f9d808b2d1ec474f184fd37ea4c9',1,'faker::Commerce']]],
- ['productadjective_14',['productAdjective',['../classfaker_1_1Commerce.html#a6e2d3d954f1b612cc51524bced96ed0a',1,'faker::Commerce']]],
- ['productfullname_15',['productFullName',['../classfaker_1_1Commerce.html#adab60540907bcf823a78835063a78240',1,'faker::Commerce']]],
- ['productmaterial_16',['productMaterial',['../classfaker_1_1Commerce.html#a74e8c968b671887b885c59d195378fd0',1,'faker::Commerce']]],
- ['productname_17',['productName',['../classfaker_1_1Commerce.html#a0fb2cb54e01b2390615e7691c8966a30',1,'faker::Commerce']]],
- ['protocol_18',['protocol',['../classfaker_1_1Internet.html#afcec10d2c5cccf38bfc9c5ddda6d7a04',1,'faker::Internet']]],
- ['publisher_19',['publisher',['../classfaker_1_1Book.html#a12b8569f795c476dace10cb980ff8d4f',1,'faker::Book']]]
+ ['password_2',['password',['../classfaker_1_1Internet.html#aa485a1fe01f437fb5787b28d94d9c077',1,'faker::Internet']]],
+ ['passwordoptions_3',['PasswordOptions',['../structfaker_1_1PasswordOptions.html',1,'faker']]],
+ ['pastdate_4',['pastDate',['../classfaker_1_1Date.html#a1dc7c608e07fdb276a1b9cc58d5bb33d',1,'faker::Date']]],
+ ['person_5',['Person',['../classfaker_1_1Person.html',1,'faker']]],
+ ['phone_6',['Phone',['../classfaker_1_1Phone.html',1,'faker']]],
+ ['phrase_7',['phrase',['../classfaker_1_1Hacker.html#aff74c0df497fd3324347f960e7bb202d',1,'faker::Hacker']]],
+ ['pin_8',['pin',['../classfaker_1_1Finance.html#a15e187cc0587b8f94c7a41e48ae87ba6',1,'faker::Finance']]],
+ ['platform_9',['platform',['../classfaker_1_1VideoGame.html#a25f2f7f0df0df05fc08fb822fa36d0b5',1,'faker::VideoGame']]],
+ ['port_10',['port',['../classfaker_1_1Internet.html#aa4ae235611f88b6f607b2958b49dcdd0',1,'faker::Internet']]],
+ ['prefix_11',['prefix',['../classfaker_1_1Person.html#a1d4e8274664980f45ec8b474519623da',1,'faker::Person']]],
+ ['preposition_12',['preposition',['../classfaker_1_1Word.html#aec3320b52da4f63cb67c394ab2c18ffe',1,'faker::Word']]],
+ ['pressure_13',['pressure',['../structfaker_1_1Weather_1_1Pressure.html',1,'faker::Weather::Pressure'],['../classfaker_1_1Weather.html#a50027a529b4b24611b08a01c45e92ed1',1,'faker::Weather::pressure()']]],
+ ['price_14',['price',['../classfaker_1_1Commerce.html#a7246f9d808b2d1ec474f184fd37ea4c9',1,'faker::Commerce']]],
+ ['productadjective_15',['productAdjective',['../classfaker_1_1Commerce.html#a6e2d3d954f1b612cc51524bced96ed0a',1,'faker::Commerce']]],
+ ['productfullname_16',['productFullName',['../classfaker_1_1Commerce.html#adab60540907bcf823a78835063a78240',1,'faker::Commerce']]],
+ ['productmaterial_17',['productMaterial',['../classfaker_1_1Commerce.html#a74e8c968b671887b885c59d195378fd0',1,'faker::Commerce']]],
+ ['productname_18',['productName',['../classfaker_1_1Commerce.html#a0fb2cb54e01b2390615e7691c8966a30',1,'faker::Commerce']]],
+ ['protocol_19',['protocol',['../classfaker_1_1Internet.html#afcec10d2c5cccf38bfc9c5ddda6d7a04',1,'faker::Internet']]],
+ ['publisher_20',['publisher',['../classfaker_1_1Book.html#a12b8569f795c476dace10cb980ff8d4f',1,'faker::Book']]]
];
diff --git a/search/classes_b.js b/search/classes_b.js
index b08b6492c..ad85aaca2 100644
--- a/search/classes_b.js
+++ b/search/classes_b.js
@@ -1,6 +1,7 @@
var searchData=
[
- ['person_0',['Person',['../classfaker_1_1Person.html',1,'faker']]],
- ['phone_1',['Phone',['../classfaker_1_1Phone.html',1,'faker']]],
- ['pressure_2',['Pressure',['../structfaker_1_1Weather_1_1Pressure.html',1,'faker::Weather']]]
+ ['passwordoptions_0',['PasswordOptions',['../structfaker_1_1PasswordOptions.html',1,'faker']]],
+ ['person_1',['Person',['../classfaker_1_1Person.html',1,'faker']]],
+ ['phone_2',['Phone',['../classfaker_1_1Phone.html',1,'faker']]],
+ ['pressure_3',['Pressure',['../structfaker_1_1Weather_1_1Pressure.html',1,'faker::Weather']]]
];
diff --git a/search/functions_e.js b/search/functions_e.js
index f61af6024..8795597f3 100644
--- a/search/functions_e.js
+++ b/search/functions_e.js
@@ -2,7 +2,7 @@ var searchData=
[
['paragraph_0',['paragraph',['../classfaker_1_1Lorem.html#a33a5333530f8b321e5808fcadc39dd12',1,'faker::Lorem']]],
['paragraphs_1',['paragraphs',['../classfaker_1_1Lorem.html#a57d8b13b30b251ada56adcd861859b77',1,'faker::Lorem']]],
- ['password_2',['password',['../classfaker_1_1Internet.html#accf91e2599865b20e539b62661c96e23',1,'faker::Internet']]],
+ ['password_2',['password',['../classfaker_1_1Internet.html#aa485a1fe01f437fb5787b28d94d9c077',1,'faker::Internet']]],
['pastdate_3',['pastDate',['../classfaker_1_1Date.html#a1dc7c608e07fdb276a1b9cc58d5bb33d',1,'faker::Date']]],
['phrase_4',['phrase',['../classfaker_1_1Hacker.html#aff74c0df497fd3324347f960e7bb202d',1,'faker::Hacker']]],
['pin_5',['pin',['../classfaker_1_1Finance.html#a15e187cc0587b8f94c7a41e48ae87ba6',1,'faker::Finance']]],
diff --git a/structfaker_1_1PasswordOptions-members.html b/structfaker_1_1PasswordOptions-members.html
new file mode 100644
index 000000000..54810c9f2
--- /dev/null
+++ b/structfaker_1_1PasswordOptions-members.html
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+Faker C++: Member List
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Faker C++
+
+ C++ Faker library for generating testing data
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+
+
+
+
+
This is the complete list of members for faker::PasswordOptions , including all inherited members.
+
+
+
+
+
+
diff --git a/structfaker_1_1PasswordOptions.html b/structfaker_1_1PasswordOptions.html
new file mode 100644
index 000000000..ce2b35f42
--- /dev/null
+++ b/structfaker_1_1PasswordOptions.html
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+Faker C++: faker::PasswordOptions Struct Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Faker C++
+
+ C++ Faker library for generating testing data
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+
+
+
+
+
+
+bool upperLetters = true
+
+
+bool lowerLetters = true
+
+
+bool numbers = true
+
+
+bool symbols = true
+
+
+
The documentation for this struct was generated from the following file:
+
+
+
+
+
+