15,949,686 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by compuknow (Top 56 by date)
compuknow
27-Jun-17 12:31pm
View
The document gives an example of fixed size arrays. for example 'char line[21]', but I have a char pointer whose value is known only as the user enters the string.
compuknow
27-Jun-17 12:26pm
View
Deleted
Can gets be used if the size of the char array is known only at runtime., ie., only when the user inputs the string ?
compuknow
27-Jun-17 12:26pm
View
Deleted
Can gets be used when the size of the character array is known only at runtime (ie., only when the user actually enters the string) ? Further is getws() a standard C function ?
compuknow
27-Jun-17 12:25pm
View
Can gets be used if the size of the char array (or the pointer in this case) is known only at runtime., ie., only when the user inputs the string ?
compuknow
14-Dec-13 0:13am
View
No. But where is it available and where should that file be?
compuknow
27-Jun-13 12:48pm
View
Actually , what do mean by the symbol '**'. Is it product (Multiplication) ?
compuknow
18-Jun-13 20:51pm
View
I have updated my question with the input value. It is a randomly generated value.
compuknow
18-Jun-13 20:50pm
View
I have updated my question with code.
compuknow
18-Jun-13 13:40pm
View
gcd(a,b) is greatest common divisor of 'a' and 'b'.
compuknow
18-Jun-13 13:38pm
View
The only input value is : phival (ie., euler totient) = 43392. Additionally p=193 and q = 227.
phival = (193-1)*(227-1) = 43392.
Other values e_key and d_key are passed by reference for the sake of getting the keys.
compuknow
18-Jun-13 13:23pm
View
Sir , that is what keygen() function does. keygen() function generates keys.
Please read my update. The problem i face is public and private keys are the same but asymmetric key cryptography rules it out.
compuknow
18-Jun-13 12:55pm
View
Where should I put srand(time(NULL)) ? Is it outside the function ?
compuknow
18-Jun-13 12:47pm
View
I have tried to explain some variables this function uses. Please see my update.
The program is somewhat large , while codeproject suggests not to dump the entire codebase. Will the forum allow me to insert such a large amount of code ? The program is organised into different files.
compuknow
18-Jun-13 12:31pm
View
It uses rand() internally. I have updated my question.
compuknow
18-Jun-13 12:30pm
View
I have updated the question with code.
compuknow
18-Jun-13 12:20pm
View
genrndnum(a,b) is a function which generates random numbers in the range 'a' to 'b' (also inclusive 'a' and 'b'). It is meant to be a short form for 'generate random number'.
compuknow
18-Jun-13 12:11pm
View
Sorry , different values means ? Are you asking the p and q values (ie., the prime numbers).
compuknow
18-Jun-13 11:20am
View
For example , (results I get after running the code) Public key = 5615 , Private key = 5615(which is wrong) , Modulus = 16279. Private and Public keys must be different.
compuknow
16-Jun-13 0:42am
View
I did it (used new operator , same error occurred.).I tried with structures instead of classes but did not work. Should i update the code.
compuknow
16-Jun-13 0:41am
View
Deleted
I did it (used new operator , same error occurred.).I tried with structures instead of classes but did not work.
compuknow
15-Jun-13 12:43pm
View
I have updated the question.
compuknow
12-Jun-13 0:24am
View
How should I modify my code ?
compuknow
11-Jun-13 23:47pm
View
The values for example are : p = 83 q = 241 publickey = 1660249 privatekey = 0 (the problem).
compuknow
11-Jun-13 23:40pm
View
p and q are random. I have updated my question. Please note that genrndprimes(a,b) is function which would generate prime numbers within a the range 'a' and 'b'.
I will give the values (i have to modify code.).
compuknow
11-Jun-13 23:37pm
View
I have updated my question with the method you suggest but i get zero as answer.
compuknow
11-Jun-13 23:32pm
View
Why do i get a zero if i am going by 1/N mod lcm(p-1,q-1) , i always get zero regardless of what p,q or n are. I tried this earlier.
compuknow
11-Jun-13 23:12pm
View
No , I am not a cryptanalyst , infact i am new to cryptography. This is not at all RSA , its Schmidt - Samoa public key encryption , the article is in wikipedia (http://en.wikipedia.org/wiki/Schmidt-Samoa_cryptosystem).
I am trying to implement it using C++. According to the article , this is the way i should generate the Private key using the publickey (ie., N itself).
compuknow
11-Jun-13 23:10pm
View
Deleted
No , I am not a cryptanalyst , infact i am new to cryptography. This is not at all RSA , its Schmidt - Samoa public key encryption , the article is in wikipedia (http://en.wikipedia.org/wiki/Schmidt-Samoa_cryptosystem).
I am trying to implement it using C++. According to the article , this is the way i should generate the Private key using the publickey.
compuknow
11-Jun-13 22:52pm
View
Are you asking the modulo in the function signature ? That modulo is p*p*q.
Any way this is a method which i had already tried "fmod((1/p*p*q),lcm((p-1),(q-1)))" but please understand i got 0 as the decryption key (in fact Always , generating p and q at random) , or is it something that I did not understand the formula properly ?
compuknow
10-Jun-13 6:41am
View
How to use it in visual C++ ?
compuknow
10-Jun-13 6:36am
View
Is there any library you know which can store large floating numbers ? How can store values that are too small in C++ ? Does double support large values?
compuknow
10-Jun-13 4:57am
View
Are there any simple ones , I found a simple library called 'InfInt' (with only one header file) but it cannot hold floating numbers. Are there any similar simple libraries ?
compuknow
7-Jun-13 22:11pm
View
If not ASCII , then which character set should I use? How can i process data with that character set in C++?
compuknow
7-Jun-13 22:07pm
View
Deleted
If not ASCII , then which character set should I use? How can i process data with that character set in C++?
compuknow
4-Jun-13 21:18pm
View
Actually , what do you mean by a binary array of bytes? Do they mean each element in the array are in boolean 0's and 1's format? The problem is I dont understand in which situations I must use these functions.
compuknow
4-Jun-13 10:58am
View
The output is 25 'smiling face' characters. This codeproject's HTTP interface does not allow those characters. Neither do I know the ASCII value of the output cipher characters. This is the problem I face in showing you the output.
compuknow
4-Jun-13 10:58am
View
Deleted
The output is 25 'smiling face' characters. This codeproject's HTTP interface does not allow those characters. Neither do I know the ASCII value of the output cipher characters. This is the problem I face in showing you the output.
compuknow
4-Jun-13 6:54am
View
Actually I wished to create it on My Own. How will I know whether or not Win32 API has an intended backdoor.
compuknow
4-Jun-13 6:50am
View
Can you suggest a good Debugger?
compuknow
4-Jun-13 4:40am
View
Can the Debugger sort out logical errors ?
compuknow
25-May-13 5:31am
View
I tried changing it as told in (1)(2)(3)(4)(5) but the condition is the same , It is still zero bytes.
compuknow
20-May-13 22:40pm
View
Are vectors useful to store entire file content of a binary file? May be using a read command.
compuknow
20-May-13 22:33pm
View
I am trying to get the size of a file as sz.
Will it work if create a clone of strlen with a difference only that it checks for the eof character?
compuknow
15-May-13 5:33am
View
But does it take the data into a 2 d array. It will only place the data into a linear array.
compuknow
12-May-13 22:12pm
View
I am not using any specific class or function for reading image files. I am just trying to load the entire binary file (jpg / exe) into a 1 dimensional array using commands in fstream.h.
But the problem is I am unable to manipulate the array data (elements).
compuknow
11-May-13 5:19am
View
Changing it unsigned doesn't work , as suspected all the data in the input file does not match with those on the output file.
Is there any way to absorb image data from the image in hexadecimal matrix (array) format and then output it as a new image file.
compuknow
24-Apr-13 0:59am
View
Does xyz.exe needs be written in the same language ie.,vbnet?
compuknow
19-Apr-13 11:46am
View
True , but the information is too short to implement.
compuknow
19-Apr-13 10:55am
View
The query string executes when executed through the MySQL Command Line Client.
ExecuteReader() must return perfectly because the query hits well through the dedicated command line client of MySQL.
The connection string works well with ExecuteNonQuery() Command , but not with ExecuteReader() command.
compuknow
19-Apr-13 3:59am
View
The application runs on the same machine where the MySQL server runs. In my connection string , i have mentioned localhost.
compuknow
18-Apr-13 22:10pm
View
sir , what information is lacking ? I could have provided.
It would not be right to reveal a connection string in a Public domain as it contains security information.
The connection string is right , because it worked when i was inserting data into this same database , the connection string used for insertion is being used here for extraction.
The query string must be right because , i know there exists those columns which are being reffered in that query string.
Could you suggest any other method for receiving data other than ExecuteReader() ?
compuknow
16-Apr-13 8:33am
View
When i pass this command through visual basic , it puts double quotes before Firstname. Like this
"Firstname and MySQL prompts me an error.
I used the visual basic command cmd.ExecuteNonQuery() to execute the MySQL command string.
Thank you.
compuknow
6-Dec-12 11:22am
View
Yes sir.
compuknow
30-Nov-12 12:19pm
View
Sir, the links does not direct me to anything relevant to window box creation instead it tells about borland C++ only.
compuknow
30-Nov-12 11:41am
View
Sir, actually i am asking a solution in borland C++ 5. I have no expertise in using visual C++. When i used visual C++ it just errors upon compiling saying that the associated .exe cannot be located. Visual C++ builds forms on its own. But i am required to explain its function also from top to bottom clearly. I am no expert in using windows based .NET or ActiveX Objects. The only thing i know is something about windows.h. When i entered something similar to drawing , the editor popped up a box showing some related drawing functions. But all are based on some complicated C++ classes , which i haven't seen in my books.
The functions in the MFC sections , i belive can be used only with visual C++. Borland C++ 5 does not even recognize #using preprocessor commands but has windows.h header files.
compuknow
29-Nov-12 13:03pm
View
Sir , i have asked for a function which supports drawing functions. In my project i wanted to draw a box so that i can put some string (information) into it.
It is like an console based information box.
I know in turbo C++ there is graphics.h but my whole project is in C++11 and in C++ 11 i cant find something similar.
Is there any good functions which support drawing in consoles using C++11?
Show More