Skip to content

Commit

Permalink
change hash computation
Browse files Browse the repository at this point in the history
  • Loading branch information
renardeinside committed Jun 24, 2024
1 parent 221aeb1 commit 46ba4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbx/sync/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_snapshot_name(client: BaseClient) -> str:
dir_name = client.base_path.split("/")[-1]

# The host and the base path should uniquely identify where we are syncing to.
base_path_hash = hashlib.md5(f"{client.host}-{client.base_path}".encode("utf-8")).hexdigest()
base_path_hash = hashlib.sha256(f"{client.host}-{client.base_path}".encode("utf-8")).hexdigest()

# Include the client name as well for human readability.
return f"{dir_name}-{client.name}-{base_path_hash}"
Expand Down

0 comments on commit 46ba4e0

Please sign in to comment.