C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 23rd, 2015, 05:21 AM
Atton Atton is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2015
Posts: 2 Atton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 23 sec
Reputation Power: 0
A Complex Or Not So Complex Problem

Before I ask question I understand, that it is important to give some information and background before I do so, on issue related to programing. For quite some time I have been looking around for a way to strings using AES or rijndael. I had done a bit of looking around and my efforts where largely fruitless. One problem lead to another and I had to look around for code that would actually compile. After asking questions and getting no response, combined with looking around the web I did hit gold. I found a library of sorts that would work to encrypt data under AES. It compiled and worked pretty well for files it was slow but usable.
I however wanted to encrypt strings which was my original goal. I tried for some time to replicate the function of this bit of code.
Code:
while(in.read((char*)&data, sizeof(data)))   	{   		divideByte(plain, data);   		encrypt(plain, w);   		data = mergeByte(plain);   		out.write((char*)&data, sizeof(data));   		data.reset();  // 0   	}   	in.close();   	out.close();  

I tried to edit it to encrypt strings rather than files. I made use of the memcpy function however my efforts where fruitless. One problem lead to another and I quickly understood I was in a bit over my head.
I tried to make it work and tried to work around the issues but result remained the same. I might be a bad programer but, a lot of you here are little bit better than bad. So do you have advice or a fix to this problem.
http://pastebin.com/nbEV6zkG
I tried several times and I tried different approaches but none worked.
http://pastebin.com/nbEV6zkG
http://pastebin.com/Mjnvg1Eb
https://github.com/SongLee24/Aes_and_Des

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > A Complex Or Not So Complex Problem


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap