Buckets:

download
raw
346 Bytes
import hashlib
def hash_access_token(access_token: str) -> str:
"""
Hashes the access token using Bcrypt.
Args:
token (str): The access token to hash.
Returns:
str: The hashed access token.
"""
access_token_bytes = access_token.encode("utf-8")
return hashlib.sha512(access_token_bytes).hexdigest()

Xet Storage Details

Size:
346 Bytes
·
Xet hash:
35759ec26e569b82bdcaa8ed72b6a70a907865ce671ca4fcac1016f8b6fe73be

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.