Posts

[How To] Use Cryptopp in Kali Linux

Image
 Crypto++ is a popular C++ library for cryptography. Instruction in this article can be used to install Cryptopp for all operating systems similar to Kali Linux. Check out this article if you want to use it with Xcode in macOS. Step 1: Download Crypto++ using this link Step 2: Extract Crypto++ and switch to that directory from the terminal or shell. Step 3: $ make Step 4: $ make test Step 5: $ sudo make install Step 6: Compile your program using g++ -I/usr/local/include -L/usr/local/lib yourCode.cpp -lcryptopp

Automate onboarding in Google Workspace

Image
This tutorial demonstrates the use of Google Workspace apps to automate the onboarding experience for new users by adding them to a google group and sending automated welcome emails after they are added. Step 1: Log in to Google Drive using your Google Workspace account and create a new Google Sheet. Step 2: Go to Insert > Form and create a new Google Form. Step 3: Add the email address and google group fields. Step 4: Go to Tools > Script editor. Step 5: In Apps Script > Go to Project Settings > Check the box for "Show "appsscript.json" manifest file in editor" option. Step 6: Go to Editor > appsscript.json and change it to the following:

Automate User Creation in Google Workspace

Image
This tutorial demonstrates how to automate the user creation process in Google workspace using Admin SDK. Step 1: Log in to Google Drive using your Google Workspace account and create a new Google Sheet. Step 2: Go to Insert > Form and create a new Google Form. Step 3: Add the desired fields: First Name, Last Name, Recovery Email, Recovery Phone, Reporting Manager, Location, Title, Department, etc. Step 4: Go to Tools > Script editor. Step 5: In Apps Script > Go to Project Settings > Check the box for "Show "appsscript.json" manifest file in editor" option. Step 6: Go to Editor > appsscript.json and change it to the following:

[How to] Redirect URL in WordPress

Image
In this tutorial, I will walk you through redirecting a URL in WordPress without using any plugins. You can open a Terminal or Command Prompt window and do the following: $cd to /var/www/html $ls -loa $sudo nano .htaccess Append to the end of file “Redirect 301 old-URL new-URL” Save the file and exit $sudo service apache2 restart This tutorial redirects a URL in WordPress without a plugin by adding a Redirect 301 rule to the site's .htaccess file on an Apache server. A 301 tells browsers and search engines that the move is permanent. Editing .htaccess directly is lightweight and avoids extra plugins, but keep a backup, since a syntax mistake there can take the site down until it is corrected.

[How To] Generate KEY and IV for CryptoPP in C++

Image
In this tutorial, I will share strategies to generate random keys and initialization vector in C++ using CryptoPP library. Approach 1: SecByteBlock key(32), iv(24); AutoSeededRandomPool prng; prng.GenerateBlock(key, key.size()); prng.GenerateBlock(iv, iv.size()); Approach 2: SecByteBlock key(16), iv(16); std::string password = "Super secret password"; DeriveKeyAndIV(password, "encryption example", 100, key, key.size(), iv, iv.size());