is there any programing language independent cryptography algorithms? [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 9 years ago.
I am developing a licensing block for a project, the QT desktop program creates a product ID and the user must enter this ID in an asp.net web site to produce an Activation Key, this activation key contains some information that needed to activating the product, and must be decrypted in QT desktop program.
What I need is a cryptography library or just one algorithm to can encrypt information in ASP.net and Decrypt it in QT(c++) or vice verse.
Can any one please guide me?

Those algorithms aren't oriented for any specific language. Just get a some crypto library in ASP, some crypto library in c++, and simply encrypt in ASP and decrypt in c++...
As long as libraries are following correctly algorithm's specification, it won't be any problem.

Related

How to start writing a firewall for linux? [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 want to develope a firewall for Linux. I prefer C/C++ language.
Is there any simple sample code for writing a firewall?
Which libraries should I use?
Update: There are some firewalls for Linux, but I want develope a simple firewall for learning.
You can start by using the Netfilters API (http://www.netfilter.org/). I think it is a good starting point for packet filtering. I've worked a lot with this API in kernel space. I'm not sure if there is a library for user land, but I must tell you that it's pretty easy to develop something with netfilters in the kernel.
As an example, iptables use the netfilters API.

Is it possible to use applets in 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 10 years ago.
I am trying to create a game in traveling salesman problem using iterative algorithm.
I need the output in an applet environment, in a new window.
Is it possible to use applets in C++ like we normally use it in Java platform?
Can anyone clear my doubt?
No. Java applets compile to Java bytecode and are delivered to a JVM running in a webbrowser. C++ programs (currently) cannot be compiled to Java bytecode, so they cannot be shipped to webbrowsers. Google is doing some work in this area (Native Client, NaCl) but that's far from finished.

How to encrypt a text [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.
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.

How to fetch image from URL (HTTP) in 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 11 years ago.
How can I fetch an image from a URL in c++ and store it on harddisk?
Thanks.
I am working in the openGL environment in c++ so that code is not related to my question.
All i want to do is fetch some image from a URL and store it on my hard disk.
Which is the Google Map static map API which i want to use to fetch the image and store.
Sample request URL would be:
http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Ccolor:red%7Clabel:C%7C40.718217,-73.998284&sensor=false
C++ isn't PHP and has no means to do that itself. You'll have to use the platform API at least (to open a socket, which isn't a part of the C++ standard), and better yet, use a third-party library — for example, with Qt you could do that in a few lines.
You could use a library such as libcURL.

Web service for PDF generation [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 12 years ago.
Does anybody know where I can find a Public Restful Web Service for PDF Generation? If so, do you have any experience using it (is it reliable/fast etc if commercial)?
The service needs to be able to take in any number of formats and return a PDF document.
EDIT: Please refrain from commenting or answering unless you know what a RESTful web service is and does. The comment war below was due mostly to my assumption that this was generally obvious to present-day programmers.
Here's one: pdflayer API
I've also created my own in the past, using Sun's Star Office Server (now Oracle Open Office Server, I think). The pricing is ridiculous, of course.
Not REST specific, but if you want to convert html documents or strings to pdf, please note that complex css-based formatting rules can be problematic in places.
Maybe some experts can bet it right, but that was my experience a few years ago.