This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |