Skip to content

Commit

Permalink
Increase password digits for added security
Browse files Browse the repository at this point in the history
Increase default password digits for added security.
  • Loading branch information
Radium-bit committed May 22, 2022
1 parent 640c422 commit c9c41a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion v2ray_util/config_modify/multiple.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def new_user():
nw = NodeWriter(group.tag, group.index)
info = {'email': email}
if type(group.node_list[0]) == Trojan:
random_pass = ''.join(random.sample(string.digits + string.ascii_letters, 8))
random_pass = ''.join(random.sample(string.digits + string.ascii_letters, 18))
tip = _("create random trojan user password:") + ColorStr.cyan(random_pass) + _(", enter to use or input new password: ")
password = input(tip)
if password == "":
Expand Down
2 changes: 1 addition & 1 deletion v2ray_util/config_modify/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def select(self, sType):
gw = GroupWriter(self.group_tag, self.group_index)
gw.write_port(443)
sw = StreamWriter(self.group_tag, self.group_index, sType)
random_pass = ''.join(random.sample(string.digits + string.ascii_letters, 8))
random_pass = ''.join(random.sample(string.digits + string.ascii_letters, 18))
tip = _("create random trojan user password:") + ColorStr.cyan(random_pass) + _(", enter to use or input new password: ")
password = input(tip)
if password == "":
Expand Down

0 comments on commit c9c41a0

Please sign in to comment.