| PLEX86 | ||
We Ask Again: Who Is DFS 10127
Asia launches cheap PC 10128 Sinister Midget I'm curious to know how they managed to obtain 15inch monitors as I didn't think they were still being manufactured now that 17inch monitors are... I've always had a thing for cryptography as well. One of my favorite "personal projects" was a C++ clbutt I wrote that handles compression, encryption and encoding of data. The clbutt behaves much like the C++ iostream clbuttes. You instantiate one of these objects then throw various data types into it. Ints, doubles, strings, memory buffers, etc. When you're done you can optionally call compress, encrypt or base64 encode on the data. Getting the data out is basically the reverse. You initialize one of these objects with a buffer that was created with one of these objects. Once initialize you might need to base64 decode the buffer. If it was encrypted you'd decrypt it with a key you need to supply. Once decrypted you can decompress it if it was originally compressed. The encryption is done with the blowfish algorithm. The algorithm is reasonably secure and is certainly more than adequate for what I need it for. The clbutt isn't rocket science but it's a fun project that's useful to have around. The usage model is basically something like... CDataStore myStore; bool bStat; bStat = myStore.Compress(9); compress with max compression bStat = myStore.Encrypt( key ); encrypt with a encryption key void* pData = myStore.Detach(); Detach the internal buffer CDataStore outStore; outStore.Attach(pData); Attach buffer to a new store bStat = outStore.Decrypt( key); Decrypt the data with a key bStat = outStore.Decompress(); int intVal; double dblVal; std::string strVal;
|
||||
Linux Advocacy from Newsgroups The #1 Usenet Provider on the Internet
|
||||