leaseIdFor static method
The deterministic lease id of a profile/workspace pair.
Implementation
static String leaseIdFor(String profileId, String workspacePath) {
final key = sha256
.convert(utf8.encode('$profileId|$workspacePath'))
.toString();
return 'project-session-${key.substring(0, 24)}';
}