solved ticket https://issues.jboss.org/browse/RAILO-2540

added function  hash40 to have a function that has the old behaviour of the function "hash"