Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*key exchange template
- Copyright Adil Hafeez 2011
- Key generated on user input
- e.g
- pqn = 2(2)(8.1)
- user types, Adil <- KeyGen = Numerical value of chars, times pqn
- Key scrambled, with random pool of letters.. abcdefghijklmnopqrstuvwxyz <-Pick from here pls
- Key sent to client, client sends key back to autheticate login
- User is authenticated
- if user is not autheticated, key destroyed
- So
- Adil = 1+2+3+4 = 10
- 10x2(2)(8.1)*1024 bytes = 324*1024 = 331776
- 331776 hashed with random chars = 3aufhafu3uafdurfhebwcbcmdanciehiola1jnadijh1kafjajf7ajbbdhba7ahdbdhcbd6
- Hashed key sent as authorization key to client
- client does integer grab from the key, destroys chars (chars be random dude)
- strings integers together in order they came, as you can see if you grab ints, you'll get 331776
- Client then checks the integrity of the sent key, does check to see if it is a double
- if not a double, user receives message that he/she/it has logged in
- if double, user receives message that he/she/it has failed login, cause of attempted session jack
- probs needs revamping
- n*2(2)(8.1)*1024 = k
- k+n*256 = encrypted key
- */
Advertisement
Add Comment
Please, Sign In to add comment