Skip to content

Commit

Permalink
⚰️ Remove unused hex_string function
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed May 9, 2024
1 parent 42e276d commit 92f5616
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions data_safe_haven/functions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from .strings import (
alphanumeric,
b64encode,
hex_string,
password,
random_letters,
replace_separators,
Expand All @@ -20,7 +19,6 @@
"allowed_dns_lookups",
"alphanumeric",
"b64encode",
"hex_string",
"ordered_private_dns_zones",
"password",
"random_letters",
Expand Down
5 changes: 0 additions & 5 deletions data_safe_haven/functions/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ def b64encode(input_string: str) -> str:
return base64.b64encode(input_string.encode("utf-8")).decode()


def hex_string(length: int) -> str:
"""Generate a string of 'length' random hexadecimal characters."""
return secrets.token_hex(length)


def password(length: int) -> str:
"""
Generate a string of 'length' random alphanumeric characters.
Expand Down

0 comments on commit 92f5616

Please sign in to comment.