私はorg.apache.commons.codec.digest.HmacUtils.hmacSha1Hex( "secretkey"、 "message")を使用しています。hmacSha1HexとhmacSha1の間に相違点はありますか?
出力に長い文字列が表示される。
私はorg.apache.commons.codec.digest.HmacUtils.hmacSha1( "secretkey"、 "message")を実行しようとしました。しかし
ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``String hmac_Sha1 = org.apache.commons.codec.digest.HmacUtils.hmacSha1("secretkey . . . '' : Typed variable declaration
2016/11/29 17:09:07 WARN - jmeter.modifiers.BeanShellPreProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: String hmac_Sha1 = org.apache.commons.codec.
は基本的に私はhmacSha1Hex出力の両方の機能 のための出力の長さを知りたいエラーに直面すると、HMAC SHA1ハッシュのようなものです:btuU9CPfMQMswNgxPIMjRkTjfks%のような
0ff4e6a0b47baebe19c392e706fffaa13664a1df私は期待していた出力3Dの違いは長さです
私はgroovyを学ぶことができる場所からいくつかのリンクを得ることができます。私は全く新しいです。 – Nikhil
有効なJavaコードの99%が有効なGroovyコードになります –