![]() |
|
[C] C++ AES GCM 256 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] C++ AES GCM 256 (/showthread.php?tid=6130410) |
C++ AES GCM 256 - neonbytes - Dec 30, 2020 Hello everyone, Is there a way to decrypt AES GCM 256 without statically linking any library? A pure C++ implementation? Or using Loadlibrary with a DLL (OpenSSL or another crypto) ? Thank you RE: C++ AES GCM 256 - Tafelpoot - Dec 30, 2020 https://github.com/kokke/tiny-AES-c RE: C++ AES GCM 256 - cghhhhasd - Dec 30, 2020 idk what OS ur using but Windows comes with WinCrypt which gives you access to lots of encryption algorithms, hash algorithms, etc. RE: C++ AES GCM 256 - 0x0SH3 - Dec 30, 2020 You can do it by using WinApi only (header: <Bcrypt.h>) without linking any library. Try to check this repo on github XShar/Fuck_Chrome_C it performs a chromium password decryption using pure C winapi RE: C++ AES GCM 256 - neonbytes - Jan 4, 2021 (Dec 30, 2020 10:59 AM)Tafelpoot Wrote: github.com/kokke/tiny-AES-c Thanks, although it says "small and portable implementation of the AES ECB, CTR and CBC encryption algorithms" it does not cover GCM. RE: C++ AES GCM 256 - guardian - Jan 4, 2021 Of course, those libraries would also be written in C++. Just have a look at their source code and learn how they implemented it. Then implement it in your project. RE: C++ AES GCM 256 - HFDone - Jan 4, 2021 (Jan 4, 2021 09:46 AM)neonbytes Wrote: Thanks, although it says "small and portable implementation of the AES ECB, CTR and CBC encryption algorithms" it does not cover GCM. for GCM you will need to use openssl https://github.com/bawejakunal/AES-GCM-256 RE: C++ AES GCM 256 - DarkVision - Jan 4, 2021 embedtls (formerly PolarSSL) embedtls has GCM support. (Used it in the RAT to create a cipher to recover passwords for Chrome +v80 browsers). embedtls also allows you to build (DLL) only using the exports you want. 🙃🙃🙃 RE: C++ AES GCM 256 - neonbytes - Jan 5, 2021 (Dec 30, 2020 02:56 PM)0x0SH3 Wrote: You can do it by using WinApi only (header: <Bcrypt.h>) without linking any library. Try to check this repo on github XShar/Fuck_Chrome_C it performs a chromium password decryption using pure C winapi Thanks for the info. I was not aware it could be done with winapi only. It's actually working for Chrome and Edge, but for some reason I cant make it work with Opera. (Jan 4, 2021 01:58 PM)DarkVision Wrote: embedtls (formerly PolarSSL) Thank you will check it out. RE: C++ AES GCM 256 - aude - Jan 8, 2021 (Dec 30, 2020 10:32 AM)neonbytes Wrote: Hello everyone, LOL damn, i have the exact opposite question as yours. Today i made a chrome >80 password recoverer, i used libsodium. BUT i failed at doing with static library, but it directly worked on my first dynamic library test Help me solve this and i give you my code ;) I know there is this trick, and i did it, but still it doesnt work.. https://github.com/jedisct1/libsodium/issues/247 All working fine with dynamic DLL, so header and .lib are correctly called i guess.. #define SODIUM_STATIC TRUE extern "C" { #include "sodium.h" } #pragma comment(lib, "libsodium.lib") fucking lost so much time on this... Another point is.. with base64 decode part and libsum the exe is not that small. (Jan 4, 2021 01:58 PM)DarkVision Wrote: embedtls (formerly PolarSSL) sound pretty good too RE: C++ AES GCM 256 - poker - Jan 8, 2021 (Dec 30, 2020 10:32 AM)neonbytes Wrote: Hello everyone, Yes, you can implement your own code or instead use LoadLibray & GetProcAddress in order to call desired functions. |