Basic crypto routines for C++ developers