Proposed new step: p:hash

The p:hash step returns the hash of a value:

<p:declare-step type="px:sha1">
  <p:output port="result"/>
  <p:option name="value" required="true"/>
  <p:option name="algorithm" required="true"/>
</p:declare-step>

Returns a <c:result> containing the value hashed according to the requested
algorithm. The 'SHA' and 'MD5' algorithms are required, others are
implementation defined. It is a dynamic error to request an algorithm that
is not supported.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Men are more like the times they live
http://nwalsh.com/            | in than they are like their
                              | fathers.--Ali Ibn-abi-talib

Received on Thursday, 18 October 2007 11:35:06 UTC