index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-02-06 11:54:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 11:54:13 +0100 |
commit | 1ea6fea1d838f3b4646c9e4eebc9ffbdf45f3149 (patch) | |
tree | aa4c7c4df9ec1ce5d46df17b14e2406c87be7ea1 /archinstall/lib/general.py | |
parent | 9fb8d3164ce07e6cd08fe60f2e6f1203ccb8991a (diff) |
-rw-r--r-- | archinstall/lib/general.py | 4 |
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index c9ebb921..ad7b8ad4 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -550,3 +550,7 @@ def json_stream_to_structure(id : str, stream :str, target :dict) -> bool : log(f" {id} is neither a file nor is a JSON string:",level=logging.ERROR) return False return True + +def secret(x :str): + """ return * with len equal to to the input string """ + return '*' * len(x) |