Members
(static) ciphers :Array
list of supported ciphers
Type:
- Array
Methods
(static) createPasswordFile(options, params, PasswordFileArray) → {Boolean}
Creates a PasswordFile to hide the password form process infos via ps auxf
etc.
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | object of cipher, password and passType, mustPass, {cipher:'aes128', password:'xxxx', passType:"in/out/word"}, if the object empty we do nothing Properties
|
|||||||||||||||
params |
Object | params will be extended with the data that need for the openssl command. IS USED AS POINTER! |
|||||||||||||||
PasswordFileArray |
String | PasswordFileArray is an array of filePaths that later need to deleted ,after the openssl command. IS USED AS POINTER! |
Returns:
result
- Type
- Boolean
(static) deleteTempFiles(files, callback)
Deletes a file or an array of files
Parameters:
Name | Type | Description |
---|---|---|
files |
Array | array of files that shoudld be deleted |
callback |
errorCallback | Callback function with an error object |
(static) isHex(hex)
helper function to check is the string a hexaceximal value
Parameters:
Name | Type | Description |
---|---|---|
hex |
String | String that should be checked to be a hexaceximal |
(static) isNumber(str)
helper function to check is the string a number or not
Parameters:
Name | Type | Description |
---|---|---|
str |
String | String that should be checked to be a number |
(static) toHex(str)
helper function to convert a string to a hexaceximal value
Parameters:
Name | Type | Description |
---|---|---|
str |
String | String that should be converted to a hexaceximal |