toSafeUrl method

String toSafeUrl()

Implementation

String toSafeUrl() {
  final config = _assembleConfig();

  final hmac = Hmac(sha1, utf8.encode(key!));
  final digest = hmac.convert(utf8.encode(config));
  final encoded = base64Url.encode(digest.bytes);
  return '$host$encoded/$config';
}