The Matrix Online Server Emulator
  • Search
  • Member List
  • Calendar
  • Help

Register


The Matrix Online Server Emulator General General Discussion v
« Previous 1 ... 20 21 22 23 24
Would like to join team

Pages (3): « Previous 1 2 3 Next »
 
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Would like to join team
03-08-2009, 09:34 PM,
#11
Renegade Offline
Member
Posts: 7
Threads: 1
Joined: Aug 2009
Reputation: 0
RE: Would like to join team
(03-08-2009, 08:50 PM)rajkosto Wrote: why are you using scanf if you are already using cout ?

Scanf was for grabbing user input. I only use cout for printing text to the CLI.

Like printf.
Find
Reply
03-08-2009, 09:42 PM,
#12
Valaro Offline
Senior Member
****
Posts: 388
Threads: 25
Joined: Aug 2009
Reputation: 3
RE: Would like to join team
How did you randomly learn C and C++ in such a short time?

[Image: SIG.jpg]
Find
Reply
03-08-2009, 10:16 PM,
#13
Renegade Offline
Member
Posts: 7
Threads: 1
Joined: Aug 2009
Reputation: 0
RE: Would like to join team
I read a book. Or two. Or three.

It doesn't matter. Reading is good for you, kids.
Find
Reply
03-08-2009, 10:21 PM, (This post was last modified: 03-08-2009, 10:24 PM by rajkosto.)
#14
rajkosto Offline
MxoEmu Programmer
*******
Posts: 1,708
Threads: 52
Joined: Jun 2009
Reputation: 33
RE: Would like to join team
the c++ way of getting input from stdin is cin >> var;
thats why i was asking, scanf is the c way
also, it wouldnt work anyway, you didnt put Yes and No like "Yes" and "No"
also scanf requires a C string as its output, and a std:Confusedtring isnt writable unless using streams

[Image: K7L1EYt.png]
Website Find
Reply
03-08-2009, 10:41 PM,
#15
Renegade Offline
Member
Posts: 7
Threads: 1
Joined: Aug 2009
Reputation: 0
RE: Would like to join team
It doesn't help that I read a C book, based on my knowledge on that. Then moved on to C++ immediately after. I mix and match the code, and my compiler doesn't seem to care.
Find
Reply
03-08-2009, 10:58 PM, (This post was last modified: 03-08-2009, 11:08 PM by rajkosto.)
#16
rajkosto Offline
MxoEmu Programmer
*******
Posts: 1,708
Threads: 52
Joined: Jun 2009
Reputation: 33
RE: Would like to join team
your compiler is messed up
anyway, do me something in php with a database, dont bother with c++

database table: users
username,passwordSalt,passwordHash varchar
userIdent1,userIdent2 int
publicExponent int
publicModulus blob 96 bytes
privateExponent blob 96 bytes

password hash = sha1(sha1(passwordSalt) + sha1(inputPassword))

make me a php page that allows making user accounts

username = as entered in http form
passwordSalt = random string of letters
passwordHash generated as above using http form as password input
userIdent1 = unique sequential uint not bigger than 16777215
userIdent2 = unique sequential uint not bigger than 4294967295

using Crypto_RSA generate a RSA public/private key pair of 768 bits with publicExponent = 17 (i do not know if mxo will support any other kind of public exponent, but everything it does with RSA keys it uses public exponent 17)
so publicExponent in the database will always be 17
then store the publicModulus and privateExponent in the table (should be 96 byte binary data when generated)

[Image: K7L1EYt.png]
Website Find
Reply
04-08-2009, 05:08 AM, (This post was last modified: 04-08-2009, 06:55 AM by HD_Neo.)
#17
HD_Neo Offline
Member
***
Posts: 223
Threads: 28
Joined: Jun 2009
Reputation: 2
RE: Would like to join team
You need something in PHP for Web? i am your man for this Smile
The old mxoemu page was done fast and short cause we had need a site, so i didnt spent much time and work in this (and so it wasnt good developed).

I have standard classes in php for mysql, user authentication that i used for my pages so its no big problem, to modify them (cause they dont used salted passwords).

Found RSA Class for PHP, will check this within the next days.

http://www.torsten-keil.net/privates/dl_...download=5
Find
Reply
04-08-2009, 01:36 PM,
#18
Renegade Offline
Member
Posts: 7
Threads: 1
Joined: Aug 2009
Reputation: 0
RE: Would like to join team
My PHP sucks. And no, it's usually fine to mix C and C++.

It's worth noting that C++ adds a lot of crap to its input, so I always use C for collecting user input.
Find
Reply
04-08-2009, 01:47 PM,
#19
rajkosto Offline
MxoEmu Programmer
*******
Posts: 1,708
Threads: 52
Joined: Jun 2009
Reputation: 33
RE: Would like to join team
that made no sense anyway, and if you suck at php then Y SO SRS

[Image: K7L1EYt.png]
Website Find
Reply
04-08-2009, 06:58 PM,
#20
Valaro Offline
Senior Member
****
Posts: 388
Threads: 25
Joined: Aug 2009
Reputation: 3
RE: Would like to join team
Raj even though i know nothing about coding, youve practically made the PHPpage in that post up there LOL!

[Image: SIG.jpg]
Find
Reply
« Next Oldest | Next Newest »
Pages (3): « Previous 1 2 3 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)

Contact UsThe Matrix Online Server EmulatorReturn to TopLite (Archive) ModeRSS Syndication

Powered By MyBB, © 2002-2025 MyBB Group.
Theme by Ryan McGrane of Audentio Design.

Linear Mode
Threaded Mode