Skip to content

Instantly share code, notes, and snippets.

@emilyfeder
emilyfeder / epic_sso_handler.js
Last active October 24, 2023 22:58
Open.Epic HTTP GET decryption
import crypto from 'crypto';
import xor from 'bitwise-xor';
import querystring from 'querystring';
class EpicSsoHandler {
//encryption algorithm used by open.epic
algorithm = 'aes-128-cbc';
// hash algorithm used by the Microsoft key derivation algorithm.
// Note, no where is this actually specified. I tried several different algorithms before deciding on this one