import { hashFile , IsoBuffer } from "@fluidframework/common-utils" ; export async function getHashedDocumentId ( driveId , itemId ) { const buffer = IsoBuffer . from ( `${ driveId }_${ itemId }` ) ; return encodeURIComponent ( await hashFile ( buffer , "SHA-256" , "base64" ) ) ; }