Skip to content

Instantly share code, notes, and snippets.

View kyle-go's full-sized avatar
🌴
On vacation

Kyle kyle-go

🌴
On vacation
View GitHub Profile
@kyle-go
kyle-go / encrypt.cpp
Last active December 14, 2015 00:59
simple encrypt
/*!
simple encrypt
*/
#include <string>
#include <assert.h>
std::string encrypt(const std::string &src, bool encrypt)
{
assert(!src.empty());
std::string ret;