2

Could you please help me ?

I want to create a token folow algorithm on Jmeter:

hash := sha256.Sum256([]byte(orderKey + apiKey)) return hex.EncodeToString(hash[:32])

Thank you so much!

hue pham
  • 123
  • 1
  • 1
  • 9

1 Answers1

0

Use __digest function, first argument SHA-256 and second argument string to encode

${__digest(SHA-256,Felix qui potuit rerum cognoscere causas,mysalt,,)}

returns a3bc6900fe2b2fc5fa8a601a4a84e27a079bf2c581d485009bc5c00516729ac7

Ori Marko
  • 56,308
  • 23
  • 131
  • 233