diff --git a/socket-address.mjs b/socket-address.mjs index 57d866f..fc1eb54 100644 --- a/socket-address.mjs +++ b/socket-address.mjs @@ -64,7 +64,8 @@ export function socketDirectory(identity, options) { const { uid, root } = settings(options); const input = canonical(["quixos-unix-socket-v1", uid, identity]); if (Buffer.byteLength(input) > 1024 * 1024) throw Error("Socket identity exceeds its bound"); - return path.join(root, createHash("sha256").update(input).digest("hex")); + // Preserve all 256 bits while leaving room for protocol-added socket suffixes. + return path.join(root, createHash("sha256").update(input).digest("base64url")); } export function socketAddress(identity, role, options) {