Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 492 Bytes
toEncrypt: `123456789`
onInit:
script: |-
const crypto= require('crypto');
function encryption(payload) {
const hash = crypto.createHash('sha256');
hash.update(payload, 'utf8');
return hash.digest('hex');
}
requisition.toEncrypt = encryption(requisition.toEncrypt);
onFinish:
assertions:
- expect: requisition.toEncrypt
toBeEqualTo: `7aad9a1a6a91e0f18c417cb3aa0e0217b283778e636c580509e494eeec1472e0`
You can’t perform that action at this time.