Thread: winsock end to end AES 256bit chat

  1. #1
    Registered User
    Join Date
    Nov 2011
    Location
    USA
    Posts
    4

    winsock end to end AES 256bit chat

    Hello,

    I'm looking to create a chat application that has no client server required.. just user to user only with AES 256bit encryption. I've read up on winsock and starting to understand the terms and syntax of it but still a bit confused on how I'm going to incorporate encryption methods... (I do have C++ knowledge but none in networking, and do wish to start getting into it). Is their a tutorial or source code examples of another project anyone knows?
    Format I wish to use..

    user enters in keyword (base64 32bytes).. user types IP:Port.. User types message.. And not looking to use any GUI.. just all in a DOS style.. also.. (user1)AES-256 --> base64 encryption --> sends --> base64 decoder --> displays message (user2)

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Jazz Master
    I'm looking to create a chat application that has no client server required.. just user to user only with AES 256bit encryption.
    This is just an academic project or a personal project for experimentation, right?

    Quote Originally Posted by Jazz Master
    I've read up on winsock and starting to understand the terms and syntax of it but still a bit confused on how I'm going to incorporate encryption methods... (I do have C++ knowledge but none in networking, and do wish to start getting into it). Is their a tutorial or source code examples of another project anyone knows?
    Try searching the Web for "C++ encryption library". Since only private key encryption is involved here, you are assuming that both parties have already exchanged keys over a secure channel.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Nov 2011
    Location
    USA
    Posts
    4
    Yes, this is personal. Just want to figure out how to build this and get more into network security.

    And I'll check out some encryption libraries thanks. And correct

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You can get your basic client/server "hello world" samples from this tutorial: Beej's Guide to Network Programming

    gg

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    for crypto libraries, I have used cryptopp a little bit, and found it to be quite powerful and relatively easy to use. it includes support for all common encryption algorithms, including DES, AES, Blowfish, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. weird winsock output and winsock 2 not working
    By whackaxe in forum Networking/Device Communication
    Replies: 4
    Last Post: 07-09-2004, 11:10 AM
  2. winsock chat
    By b00l34n in forum Networking/Device Communication
    Replies: 17
    Last Post: 04-10-2004, 11:14 AM
  3. Winsock End-of-Message Response :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 12-24-2002, 01:27 PM
  4. Chat BOT
    By RoD in forum C++ Programming
    Replies: 85
    Last Post: 10-26-2002, 11:00 AM
  5. AOL Chat
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 06-13-2002, 10:41 PM