created getter & setter for encryptionSeparator
This commit is contained in:
parent
cabd16a63f
commit
1a5b58edf9
@ -47,11 +47,13 @@ static char encryptionSeparator = '.'; // > DO NOT TOUCH THIS, USE setEncryp
|
||||
static unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead <
|
||||
|
||||
//GETTERS
|
||||
char getEncryptionSeparator();
|
||||
unsigned long getKeyLength();
|
||||
inputFlags noFlags(); //THIS GENERATES inputFlags WITH DEFAULT VALUES
|
||||
outputFlags noOutput(unsigned char exitCode); //SAME AS noFlags() BUT FOR outputFlags
|
||||
|
||||
//SETTERS
|
||||
void setEncryptionSeparator(char encryptionSeparatorNew);
|
||||
void setKeyLength(int keyLengthNew);
|
||||
|
||||
#endif
|
||||
|
@ -2,6 +2,11 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
char getEncryptionSeparator()
|
||||
{
|
||||
return encryptionSeparator;
|
||||
}
|
||||
|
||||
unsigned long getKeyLength()
|
||||
{
|
||||
return keyLength;
|
||||
@ -22,6 +27,11 @@ outputFlags noOutput(unsigned char exitCode)
|
||||
return (outputFlags) { empty1, empty2, 0, 0, exitCode };
|
||||
}
|
||||
|
||||
void setEncryptionSeparator(char encryptionSeparatorNew)
|
||||
{
|
||||
encryptionSeparator = encryptionSeparatorNew;
|
||||
}
|
||||
|
||||
void setKeyLength(int keyLengthNew)
|
||||
{
|
||||
keyLength = keyLengthNew;
|
||||
|
Loading…
x
Reference in New Issue
Block a user