// // BulldogTool.h // UUTUtils // // Created by zhuge on 2018/1/23. // Copyright © 2018年 zhuge. All rights reserved. // #ifndef BulldogTool_h #define BulldogTool_h #include using namespace std; class BulldogTool { public: static BulldogTool* getInstance(); /* * 随机一个int数[start, end] */ int randomInt(int start, int end); /* * 随机一个字符串 */ string randomString(int len); /* * 字符串加解密 (gzip)->(base64)->(1,2位置互换)->(插入干扰字符) */ virtual string decrypt(string content); virtual string encrypt(string content); private: BulldogTool() = default; ~BulldogTool() = default; }; #endif /* BulldogTool_h */