Here are the simplest, most effective solutions (as usual).
CryptBytes is a simple-to-use codec class will Compress, Encrypt, and URL Encode binary data into a text string that can be simply stored in a database or sent through the Internet.
RC4 is fast and simple to hide data from casual browsers.
RC6 is short, rare and good and capable of keeping data safe.
Scrambler.h contains several routines and classes that will reverse, interleave and scramble bits in a DWORD or turn them to text and back.
They are most useful for creating and manipulating keys for higher levels of encryption or for license and serial codes etc.
Mix them all together various times in various ways with plenty of calls to Rand and you'll soon have well muddled data that can only be restored by reversing whatever it was that you did!
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
(1893) Last modified: Wed, 09 Aug 2017 16:37:27 +0000