Skip to content

Commit e1a8bbc

Browse files
committed
cloudvision/cvlib: Style fixes for doType7Obfuscation and doSHA512Hashing
Related-Bug: BUG1316866 Change-Id: Ie627397774b3c176d7708c97b34603273d34472c
1 parent 40e5067 commit e1a8bbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cloudvision/cvlib/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ def extractJSONEncodedListArg(listArg: str):
6565
return extractedList
6666

6767

68-
def doType7obfuscation(plaintext: str, salt: int, obf: str):
68+
def doType7Obfuscation(plaintext: str, salt: int, obf: str):
6969
"""
7070
Perform Type 7 password obfuscation using XOR encoding.
7171
7272
Args:
73-
plaintext : The plaintext password to obfuscate.
74-
salt : The salt value (0-99) to use for obfuscation.
75-
obf : The obfuscator string to use for obfuscation.
73+
plaintext (str): The plaintext password to obfuscate.
74+
salt (int): The salt value (0-99) to use for obfuscation.
75+
obf (str): The obfuscator string to use for obfuscation.
7676
7777
Returns:
7878
The obfuscated password as a string.
@@ -94,8 +94,8 @@ def doSHA512Hashing(plaintext: str, salt: str):
9494
Generate SHA-512 password hash using Unix crypt format.
9595
9696
Args:
97-
plaintext: The plaintext password to hash.
98-
salt: Salt string (only alphanumeric characters, periods, and slashes are used).
97+
plaintext (str): The plaintext password to hash.
98+
salt (str): Salt string (only alphanumeric characters, periods, and slashes are used).
9999
100100
Returns:
101101
The hashed password in Unix crypt format ($6$salt$hash).

0 commit comments

Comments
 (0)