Skip to content

Instantly share code, notes, and snippets.

@yakovenkodenis
Created November 14, 2022 21:07
Show Gist options
  • Save yakovenkodenis/327c425f1665b20505b1f5a8c262d7aa to your computer and use it in GitHub Desktop.
Save yakovenkodenis/327c425f1665b20505b1f5a8c262d7aa to your computer and use it in GitHub Desktop.
_generateAcceptValue(acceptKey) {
return crypto
.createHash('sha1')
.update(acceptKey + this.GUID, 'binary')
.digest('base64');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment