- Source:
Methods
-
<static> encryptGmailPassword(gmailEmail, gmailPassword) → {string}
-
Encrypts the given password for use with Google's Android authentication.
Parameters:
Name Type Description gmailEmailstring gmailPasswordstring - Source:
Returns:
- Type
- string
-
<static> getSCPreHashString(username, password, timestamp, endpoint) → {string}
-
Returns the pre-hash string used for Snapchat requests.
Parameters:
Name Type Description usernamestring passwordstring timestampstring endpointstring - Source:
Returns:
- Type
- string
-
<static> hashHMacToBase64(str, key) → {string}
-
Parameters:
Name Type Description strstring keystring - Source:
Returns:
- Type
- string
-
<static> hashSCString(first, second) → {string}
-
Parameters:
Name Type Description firststring secondstring - Source:
Returns:
- Type
- string
-
<static> md5HashToHex(str) → {string}
-
Parameters:
Name Type Description strstring - Source:
Returns:
- Type
- string
-
<static> mediaIdentifier(sender) → {string}
-
Parameters:
Name Type Description senderstring - Source:
Returns:
- Type
- string
-
<static> SCIdentifier(first, second) → {string}
-
Parameters:
Name Type Description firststring secondstring - Source:
Returns:
- Type
- string
-
<static> sha256HashToBase64(str) → {string}
-
Parameters:
Name Type Description strstring - Source:
Returns:
- Type
- string
-
<static> sha256HashToHex(str) → {string}
-
Parameters:
Name Type Description strstring - Source:
Returns:
- Type
- string
-
<static> timestamp() → {string}
-
- Source:
Returns:
milliseconds for current time from epoch as a string
- Type
- string
-
<static> timestampFrom(date) → {string}
-
Parameters:
Name Type Description dateDate - Source:
Returns:
milliseconds date is from epoch as a string
- Type
- string
-
<static> tryParseJSON(input) → {Object}
-
Attempts to parse the given string as JSON, returning null upon parse error.
Parameters:
Name Type Description inputstring - Source:
Returns:
- Type
- Object
-
<static> uniqueIdentifer() → {string}
-
- Source:
Returns:
- Type
- string