- Source:
Methods
-
<static> _getHeader(data) → {Object}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- Object
-
<static> AES128DecryptedData(data, key, iv) → {Buffer}
-
Decrypts Buffer data for stories.
Parameters:
Name Type Description data
Buffer key
Buffer iv
Buffer - Source:
Returns:
- Type
- Buffer
-
<static> boundaryForBuffer(key, value) → {Buffer}
-
Generates a HTTP multipart/form-data boundary for the given key key,value pair.
Parameters:
Name Type Description key
string value
Buffer - Source:
Returns:
- Type
- Buffer
-
<static> boundaryForString(key, value) → {Buffer}
-
Generates a HTTP multipart/form-data boundary for the given key key,value pair.
Parameters:
Name Type Description key
string value
string - Source:
Returns:
- Type
- Buffer
-
<static> decryptStory(data, key, iv) → {Buffer}
-
Decrypts Buffer data for stories.
Parameters:
Name Type Description data
Buffer key
string (base64)
iv
string (base64)
- Source:
Returns:
- Type
- Buffer
-
<static> getFileExtension(data) → {string}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- string
-
<static> hashSC(a, b) → {string}
-
Parameters:
Name Type Description a
Buffer b
Buffer - Source:
Returns:
- Type
- string
-
<static> isCompressed(data) → {boolean}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- boolean
-
<static> isImage(data) → {boolean}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- boolean
-
<static> isJPEG(data) → {boolean}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- boolean
-
<static> isMedia(data) → {boolean}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- boolean
-
<static> isMPEG4(data) → {boolean}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- boolean
-
<static> isPNG(data) → {boolean}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- boolean
-
<static> sha256HashToBase64(data) → {string}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- string
-
<static> sha256HashToHex(data) → {string}
-
Parameters:
Name Type Description data
Buffer - Source:
Returns:
- Type
- string