FORUMS


Discussion about Intalio|BPP Community Edition.


Back to General Questions (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Re:password encryption ( Log-in Process )
Apr 20, 2009 4:04 am
mark.reverman (User)
11 posts
Fresh Boarder

Karma: 0  
There is a web service that I need to integrate into Intalio that requires the following Log-in Process

1 Authentication Request – Sent to the server to request a nonce value for a login ID

2. Authentication Response – Sent in response to the above message. This message contains the nonce value required to perform the MD5 encryption of the password

3.Login Request – Sent to the server to log in a user. This message contains the encrypted password using the nonce from the previous message

4.Login Response – Sent in response to the above message. This message confirms that the user was logged in or gives an error message when the login was not successful (for example, the password was incorrect)

MD5 Encrypted Password Calculation

The MD5 encrypted password calculation is as follows:
1) The message digest of the user’s plain password is calculated using the Secure Hash Algorithm (SHA) algorithm.

2) For every four bits in the 160-bit digest, starting from the first bit, it is converted into a character in ASCII Hex format (0 through 9, a through f). The result is a 40-character string S1, for example, f7a9e24777ec23212c54d7a350bc5bea5477fdbb.

3) The string S1 is then used to construct a new string S2, whereby S2 = nonce + “:” + S1, where nonce is the value in the authentication response message from the system.

4) Next, the message digest of S2 is calculated using the MD5 algorithm.

5) For every four bits in the 128-bit digest from step 2, starting from the first bit, it is converted into a character in ASCII Hex format (0 through 9, a through f). The result is a 32-character string, for example, dc70779bf8461b5a1e6aea58f636d5c0.

6) This string is used as the password in the command passed to the Login Request.


Does intalio have the ability to use MD5 encryption? Are there any other solution available to me?

Thanks
Mark
 
  The administrator has disabled public write access.
Apr 20, 2009 10:51 am
Antoine (Admin)
2748 posts
Admin

Karma: 56  
Hi Mark, you would need to define custom functions to define a md5 encryption xpath function, and the ASCII to hex and hex to ASCII transformations as well.

Here is a tutorial on how to create xpath functions:
http://www.intalio.org/confluence/display/PXE/Custom+XPath+Functions

Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Apr 20, 2009 3:03 pm
mark.reverman (User)
11 posts
Fresh Boarder

Karma: 0  
Antoine,
Thank you for the quick reply. I will take a look.

Mark
 
  The administrator has disabled public write access.
Apr 20, 2009 10:02 pm
dfrench (User)
367 posts
Platinum Boarder

Karma: 14  
The crypto functions for MD5 and SHA-1 are defined as part of the XFORMS standard see digest() function so you might shortcut your process by locating an implementation of XFORMS which exposes these XPATH extensions ( Orbeon has implemented them)
David
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Upcoming Trainings

More Trainings...

Upcoming Webinars

More Webinars...

Top Posters

Last 30 days

  • Antoine (138)
  • himar.rodriguez (9)
  • german.santana (8)
  • kevin.fernandez (8)
  • ddd.m123 (8)
  • lars.roediger (6)
  • gayatri.chandak (5)
  • jal1967 (5)
  • rune.lindvig (4)
  • iakovos.karakas (4)

All time

  • Antoine (2748)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (253)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.