-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
I am trying to decrypt the encryption but it keeps encrypting further. Is there something I am missing?
`string sKey = "help";
string siv = "test";
uint8_t * key =(uint8_t *) sKey.c_str();
uint8_t * iv =(uint8_t *) siv.c_str();
ucstk::Salsa20 salsa20(key);
salsa20.setIv(iv);
string sinput = "help";
uint8_t * input =(uint8_t *) sinput.c_str();
// uint8_t * output;
salsa20.processBytes(input, input, sinput.size());
cout << "Output: "<< input << "\n";`
Output : )┴à┴
`string sKey = "help";
string siv = "test";
uint8_t * key =(uint8_t *) sKey.c_str();
uint8_t * iv =(uint8_t *) siv.c_str();
ucstk::Salsa20 salsa20(key);
salsa20.setIv(iv);
string sinput = ")┴à┴";
uint8_t * input =(uint8_t *) sinput.c_str();
// uint8_t * output;
salsa20.processBytes(input, input, sinput.size());
cout << "Output: "<< input << "\n";
`
Output: hF}♣╔┤‼0o
Metadata
Metadata
Assignees
Labels
No labels