mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-30 19:47:44 +03:00
Jun 16th update
This commit is contained in:
@@ -35,6 +35,9 @@ class Encryptor::Impl : Singleton::Provide<I_Encryptor>::From<Encryptor>
|
||||
// Obfuscating
|
||||
string obfuscateXor(const string &input) override;
|
||||
string obfuscateXorBase64(const string &input) override;
|
||||
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
string
|
||||
@@ -68,6 +71,7 @@ Encryptor::Impl::obfuscateXorBase64(const string &input)
|
||||
return base64Encode(obfuscated);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Encryptor::preload()
|
||||
{
|
||||
|
@@ -83,3 +83,4 @@ TEST_F(EncryptorTest, XORBase64Encrypt)
|
||||
i_encryptor->obfuscateXorBase64(string("\x0b\x2d\x29\x2f\x24\x70\x18\x26\x3c\x38\x27\x69")), "SGVsbG8gV29ybGQh"
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user