looking for simple encrypt/decrypt commands

This is a discussion on looking for simple encrypt/decrypt commands within the C++ Programming forums, part of the General Programming Boards category; I am looking for some simple encrypt and decrypt commands (using something secure like aes 256). A template would be ...

  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    88

    looking for simple encrypt/decrypt commands

    I am looking for some simple encrypt and decrypt commands (using something secure like aes 256). A template would be nice.

    <type> *encrypt(&string, &password) and <type> *decrypt(&string, &password).

    Can you advice me some library?

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    88
    http://www.cryptopp.com/docs/ref/index.html it looks quite good.

    But I don`t know really what I can use to encrypt a simple string.

    I want encrypt a string with a password and save it to disk. If the disk gets stolen then no one may decrypt this without a computer centre and bruteforce. Later it may be decrypted with the right password. The length of the password (20 chars +) doesn`t matter but it should be also just a string. That`s basically all I want to do.

    Just symmetric encryption, no complicated public key encryption.

    Any advice in which class I should start looking?

  4. #4
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    I'm not terribly familiar with these animals myself, but SHA and MD5 implementations are availible. Perhaps in that very package.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  5. #5
    Registered User
    Join Date
    Jul 2007
    Posts
    88
    Them are hashs, won`t work for this situation.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Get user commands from text file.
    By Ironic in forum C Programming
    Replies: 4
    Last Post: 12-08-2008, 11:38 PM
  2. Executing DOS commands from inside an image
    By Moony in forum C Programming
    Replies: 6
    Last Post: 03-16-2008, 01:40 PM
  3. Replies: 2
    Last Post: 07-27-2007, 01:48 PM
  4. Executing system commands cross platform
    By markucd in forum C++ Programming
    Replies: 6
    Last Post: 11-04-2005, 08:56 AM
  5. Bluetooth Dial-up network profile with AT commands
    By BrownB in forum Networking/Device Communication
    Replies: 0
    Last Post: 06-29-2005, 03:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21