Skip to content

Instantly share code, notes, and snippets.

@Kunjin
Kunjin / aes_crypt.cpp
Created December 4, 2018 05:41 — forked from hasherezade/aes_crypt.cpp
AES 128 - encrypt/decrypt using Windows Crypto API
#include <Windows.h>
#include <wincrypt.h>
#include <stdio.h>
#pragma comment(lib, "crypt32.lib")
#define BLOCK_LEN 128
//params: <input file> <output file> <is decrypt mode> <key>
int wmain( int argc, wchar_t *argv[])
{
#!/bin/bash
# Usage
# First create an encrypted password to be used as connection pass
# and pass as a parameter with the script. To create use: slappasswd
# Clean packages
sudo yum clean all
# Install openldap as service manager
sudo yum -y install openldap-servers openldap-clients