- Source:
Methods
-
<static> encryptGmailPassword(gmailEmail, gmailPassword) → {string}
-
Encrypts the given password for use with Google's Android authentication.
Parameters:
Name Type Description gmailEmail
string gmailPassword
string - Source:
Returns:
- Type
- string
-
<static> getSCPreHashString(username, password, timestamp, endpoint) → {string}
-
Returns the pre-hash string used for Snapchat requests.
Parameters:
Name Type Description username
string password
string timestamp
string endpoint
string - Source:
Returns:
- Type
- string
-
<static> hashHMacToBase64(str, key) → {string}
-
Parameters:
Name Type Description str
string key
string - Source:
Returns:
- Type
- string
-
<static> hashSCString(first, second) → {string}
-
Parameters:
Name Type Description first
string second
string - Source:
Returns:
- Type
- string
-
<static> md5HashToHex(str) → {string}
-
Parameters:
Name Type Description str
string - Source:
Returns:
- Type
- string
-
<static> mediaIdentifier(sender) → {string}
-
Parameters:
Name Type Description sender
string - Source:
Returns:
- Type
- string
-
<static> SCIdentifier(first, second) → {string}
-
Parameters:
Name Type Description first
string second
string - Source:
Returns:
- Type
- string
-
<static> sha256HashToBase64(str) → {string}
-
Parameters:
Name Type Description str
string - Source:
Returns:
- Type
- string
-
<static> sha256HashToHex(str) → {string}
-
Parameters:
Name Type Description str
string - 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 date
Date - 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 input
string - Source:
Returns:
- Type
- Object
-
<static> uniqueIdentifer() → {string}
-
- Source:
Returns:
- Type
- string