Thanks Deepak, this is all starting to make sense I think.
Quick question, this is what my Beanshell is currently looking like...
import java.security.MessageDigest;
String text = vars.get("time");
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] md5hash = new byte[32];
md.update(text.getBytes("utf-8"), 0, text.length());
md5hash = md.digest();
vars.putObject("timehash",md5hash);
However, when i run it, in the jmeter.log, this keeps showing...
2010/11/20 12:53:47 ERROR - jmeter.util.BeanShellInterpreter: Error invoking
bsh method: eval Sourced file: inline evaluation of: ``import
java.security.MessageDigest; String text = vars.get("time"); MessageDige . .
. ''
--
View this message in context:
http://jmeter.512774.n5.nabble.com/Need-helping-creating-a-md5-hash-tp3273251p3273855.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]