Adilol

Ideas

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