Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C++ Encryption/ Decryption/ SSL/ Hashing/ Cracking

user-friendly c++ crypto class, based on cryptopp library, abstracts away all the crap beginners don't want to have to do, encrypt, decrypt, create ssl public/private keys, and hash with a single call..

Code
#include "lib/viper.hpp"

using namespace std;
using namespace ViperCipher;

int main(int argc, char **argv)
{

    string  plain = "something to hash";

    Viper *viper = new Viper();

    string_view enc = viper->Encrypt(plain);
    string_view dec = viper->Decrypt(enc);
    
    std::cout << "Encrypted: " << enc << std::endl;
    std::cout << "Decrypted: " << dec << std::endl;

    delete viper;

    return EXIT_SUCCESS;
};

if you like it, you can find the full library here: https://github.com/nucleoType98/Crypto-Viper.git, i made it just to make life easier for who doesn't like too much boilerplate, it works on Linux OS (x86-64 bit Architectures), i dont know about Windows and Mac OS, but i think it should work as well... i also added a function to brute force a hash cipher, using any key size(1,224,256, 384, 512)... which will require an hashed string, and it will start try to brute force crack it
(Apr 12, 2024 04:57 PM)nucleo_type09 Wrote:  user-friendly c++ crypto class, based on cryptopp library, abstracts away all the crap beginners don't want to have to do, encrypt, decrypt, create ssl public/private keys, and hash with a single call..

Code
#include "lib/viper.hpp"

using namespace std;
using namespace ViperCipher;

int main(int argc, char **argv)
{

    string  plain = "something to hash";

    Viper *viper = new Viper();

    string_view enc = viper->Encrypt(plain);
    string_view dec = viper->Decrypt(enc);
    
    std::cout << "Encrypted: " << enc << std::endl;
    std::cout << "Decrypted: " << dec << std::endl;

    delete viper;

    return EXIT_SUCCESS;
};

if you like it, you can find the full library here: https://github.com/nucleoType98/Crypto-Viper.git, i made it just to make life easier for who doesn't like too much boilerplate, it works on Linux OS (x86-64 bit Architectures), i dont know about Windows and Mac OS, but i think it should work as well... i also added a function to brute force a hash cipher, using any key size(1,224,256, 384, 512)... which will require an hashed string, and it will start try to brute force crack it

Nice share, I'm surprised nobody has responded to this, but thanks for mentioning it in my thread.
Does your tool handle other types of strings, such as when a size must be declared, or would you recommend that this string type is converted? I had experimented with this in my own class & it's tough because if you convert a string type in runtime to & from, you end up leaving the string exposed unless you manually clear it, which makes it clunky to use runtime decryption. So, I started working on bringing over more types to my class so that this isn't needed. just wondering what your solution is for strings that require size to be defined.
(Apr 14, 2024 10:19 AM)Hackers Wrote:  Nice share, I'm surprised nobody has responded to this, but thanks for mentioning it in my thread.
Does your tool handle other types of strings, such as when a size must be declared, or would you recommend that this string type is converted? I had experimented with this in my own class & it's tough because if you convert a string type in runtime to & from, you end up leaving the string exposed unless you manually clear it, which makes it clunky to use runtime decryption. So, I started working on bringing over more types to my class so that this isn't needed. just wondering what your solution is for strings that require size to be defined.

well i essentially perform a deep garbage collection at the destruction of the object, so nothing is left, i yeah as i already said, my version of crypto class does encryption, decryption, hashing with different block sizes, generates ssl public/private keys, also has a special function that cracks ciphers.. i thought it will be interesting tho... also for this i have a git repo with a full documentation about it at https://github.com/nucleoType98/Crypto-Viper.git, i spend maybe 2 weeks on this, just for the documentation maybe a 4-5 days haha, man, i hate documentations 😭
(Apr 14, 2024 11:25 AM)nucleo_type09 Wrote:  well i essentially perform a deep garbage collection at the destruction of the object, so nothing is left, i yeah as i already said, my version of crypto class does encryption, decryption, hashing with different block sizes, generates ssl public/private keys, also has a special function that cracks ciphers.. i thought it will be interesting tho... also for this i have a git repo with a full documentation about it at https://github.com/nucleoType98/Crypto-Viper.git, i spend maybe 2 weeks on this, just for the documentation maybe a 4-5 days haha, man, i hate documentations 😭

Have you thought about using AI for documentation? It's really, really helpful.
You can give it your codebase, have it write out function types/definitions, and start writing up docs. I always review for accuracy, but with proper prompting and having it do it piece by piece, it usually ends up very well-documented.
(Apr 15, 2024 07:07 AM)Hackers Wrote:  Have you thought about using AI for documentation? It's really, really helpful.
You can give it your codebase, have it write out function types/definitions, and start writing up docs. I always review for accuracy, but with proper prompting and having it do it piece by piece, it usually ends up very well-documented.

i used gpt for a feedback, but did not try for the actual documentation, i'll try, but i didn't so far bcz i'm trying to keep things legit, meaning i do really want to have my signature over my work, even with errors if needs to be, those errors can be removed eventually, but i feel like if i let gpt do my stuff then it would have less sense to me, idk if that makes sense to u tho haha, do u also feel sometimes the need to leave your signature on your work or you don't really care about it?


Possibly Related Threads...
Thread / Author Replies Views Last Post
[The Brotherhood] by HackersApr 10, 2026 02:15 AM 22 2,149 Apr 10, 2026 02:15 AM
Last Post: PELock
[C] by TarikBrt69Oct 1, 2020 01:57 AM 6 375 Oct 1, 2020 01:57 AM
Last Post: mike.vronsky
[C#] by gigajewFeb 12, 2019 05:55 PM 0 410 Feb 12, 2019 05:55 PM
Last Post: gigajew