extensions/microsoft-authentication/src/cryptoUtils.ts/sha256
function sha256(plain: string | undefined) {
	const encoder = new TextEncoder();
	const data = encoder.encode(plain);
	return crypto.subtle.digest('SHA-256', data);
}