For sharing functionality, you need to create a link like:
/match/shared/{matchId}?d={datetime}&h={hash}
where:
{matchId} - guid of the match
{datetime} - is DateTime.UtcNow.ToBinary()
{hash} - is a cryptographic hash (for example SHA256 or SHA512) of ({matchId}, {datetime}, {userPassword}) encoded in base-64 string (Convert.ToBase64)
For sharing functionality, you need to create a link like:
/match/shared/{matchId}?d={datetime}&h={hash}
where:
{matchId}
- guid of the match{datetime}
- isDateTime.UtcNow.ToBinary()
{hash}
- is a cryptographic hash (for example SHA256 or SHA512) of ({matchId}, {datetime}, {userPassword}
) encoded in base-64 string (Convert.ToBase64
)[x] other can copy the shared match