How to encrypt a text [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I need to implement a simple text encryption in C++ without using any existing framworks. This is purely for educational purpose to learn the in-and-outs and to learn the way to implement such a system. I am not planning to implement this in production code. I can use Windows APIs but it won't be cross platform. I am trying to learn something can work across multiple platforms. the best way to implement this is implement using C/C++. Please share good resources or links in this regard.

Depending on what you actually want, you could look at the CipherSaber project: instructions to implement your own RC4 encryption code for a simple IV+text format.
However this is an academic exercise only: you should never use your own crypto code in production unless you really know what you're doing. You could also read Schneier's Applied Cryptography for a good introduction to all of this stuff.

Related

How to make a simple embeddable scripting language for C++? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I'm building a game engine and can't quite find a scripting language that does what I want, and is embeddable into C++. Therefor, the natural solution is to build my own.
I know the basics about Flex, Bison, peg/leg, and a little about VMs. Can I use this knowledge to build a small scripting language for a game engine? How would I implement an embedded language? I'm not really sure where to start off building such a small language.
A common scripting language for use with C++ is Lua. You can implement it with Luabind or another binding, there are plenty (and there are even tutorials to write your own).
Another option is to use Python with Boost.

How to read and write "Excel" with c/c++ (in smartphone app develop) [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm a smartphone app developer.
I want to make a app running in iOS,android,winphone.
I use cocos2d-x platform tool to make this app. it base of c/c++ language.
So,
Dose anyone can tell me How to read and write excel with c/c++
For what purpose? Just reading the file can be done by treating it as an opaque stream of bytes, just like any other file.
I doubt that's what you really mean, though.
If you want to interpret the file's contents, and present/update the calculations, then surely you must realize that the answer to "how" that is done must be gigantic? Excel is a huge, huge, and very old application, probably the result of many millions of lines of code.
Nobody can tell you "how" to interpret that in a simple answer here.
The closest thing you can probably get here is a recommendation on a library to use. I had a quick look, and LibXL was the first one I found for C++. It is a commercial library, and I have no experience with it.

Contributing to an opensource C++ library [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
How should i get it, by SVN?
Can i use Eclipse and its Subversive Team Provider add on to manage my changes?
Then if i make some changes how can i commit, who decide that my changes are friendly and good enough?
To be honest i want to try to contribute to some library, because of motivation that contribution provides me on learning C++ details.
I search and read a little about Boost, but i think it is too complicated to be a starting point.
Thus can you provide a path to start and become an open source library contributor?
Well, the very first step is to actually read the FAQ. That's always a good start.
Especially the "How can I contribute to development?" question.
http://www.boost.org/users/faq.html

Encryption algorithm [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Do you know a good encryption algorithm that isn't too difficult to implement in c++ (but neither too easy)?
Look at this wonderful comics on AES. It explains the cryptographic background of the algorithm and you can practice by writing a high-performance implementation of one in different languages.
I think RSA is good as well as pretty much straightforward to implement. You might want to look into it. Another one I would be suggesting which is also straightforward is DES.
Rivest, Shamir and Adleman (RSA)
Data Encryption Standard (DES)
If you're just looking for something to code up for the learning experience, I've always liked the Advanced Encryption Standard. The actual standard document at NIST provides all the detail you need to write and test your code.
I like RC5 for its simplicity. Much easier to implement than e.g. AES, and while not quite as strong, it is still a good cypher.

C++ windows registry editing [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
hey i need c++ program to edit windows registry
One good program is Regedit.exe. It is probably written in C++.
Qt has an excellent framework for editing registy - that is, QSettings. And for bonus points, if you happen to change your mind and go Linux, your code would still work, storing your data in .ini-style configuration files.
Take note that Qt is very fat for a C++ library, but also very functional. There's a crazy lot you can do with it. I also absolutely recommend it for GUI.
There are probably a thousand small C++ wrappers for registry access. Of course I wrote my own, too. See the class RegistryKey in my envvc program. It's only read-only access, but you'll get the idea.