Changed enc / dec to encrypt / decrypt
This commit is contained in:
parent
9b29cf8de9
commit
c3d30d2ddc
@ -39,12 +39,15 @@ at this moment!
|
||||
* write "%filename%" "%filedata%" -> writes filedata contents to file.txt as expected.
|
||||
|
||||
* Decoding and encoding strings
|
||||
* enc "Regular string" -> Converts to encrypted string 'Uhjvqds#xuulqj'
|
||||
* dec "Uhjvqds#xuulqj" -> Converts back to 'Regular string'
|
||||
* encrypt "Regular string" -> Converts to encrypted string 'Uhjvqds#xuulqj'
|
||||
* decrypt "Uhjvqds#xuulqj" -> Converts back to 'Regular string'
|
||||
|
||||
* MD5 file checking
|
||||
* md5 "file.txt" -> outputs filename and md5 hash
|
||||
|
||||
* 2 Layer piping
|
||||
* md5 "file.txt" | write "file.txt.md5" "%PIPE%" -> writes output of md5 to file.txt.md5
|
||||
|
||||
Todo list
|
||||
----
|
||||
* Add in-script functions
|
||||
|
@ -70,7 +70,7 @@ char *process_line(char *line)
|
||||
}
|
||||
|
||||
/* ss encrypt function */
|
||||
else if(strncmp("enc",tok_srch,3) == 0)
|
||||
else if(strncmp("encrypt",tok_srch,7) == 0)
|
||||
{
|
||||
char *var_conv;
|
||||
tok_srch = strtok(NULL, "\"");
|
||||
@ -88,7 +88,7 @@ char *process_line(char *line)
|
||||
}
|
||||
|
||||
/* ss decrypt function */
|
||||
else if(strncmp("dec",tok_srch,3) == 0)
|
||||
else if(strncmp("decrypt",tok_srch,7) == 0)
|
||||
{
|
||||
char *var_conv;
|
||||
tok_srch = strtok(NULL, "\"");
|
||||
|
4
test.ss
4
test.ss
@ -40,12 +40,12 @@ print "Some content to print, working with '%ss_filename%' today!"
|
||||
# holding the first functions output, writes to %ss_filename%; file.txt
|
||||
### %PIPE% is the output from the first line function, enc
|
||||
### %PIPE% is always applied when a pipe is used!
|
||||
enc "%ss_stringdata%" | write "%ss_filename%" "%PIPE%"
|
||||
encrypt "%ss_stringdata%" | write "%ss_filename%" "%PIPE%"
|
||||
# You're left with file.txt, lets move on
|
||||
|
||||
# Lets read the file we just created and show how SS handles its
|
||||
# own decryption algorithm
|
||||
read "%ss_filename%" | dec "%PIPE%"
|
||||
read "%ss_filename%" | decrypt "%PIPE%"
|
||||
# Will display the original variable string!
|
||||
|
||||
# SS MD5 function
|
||||
|
Loading…
x
Reference in New Issue
Block a user