Need HMAC encode code written in Swift 5

Job ID: 32639396

Budget: $30 – $250 USD

Have API which accepts HMAC requests. Successful requests can be sent from Postman. Using Apple's CryptoKit (HMAC<SHA256>.authenticationCode) the resulting digest is different. The only thing I can figure out is successful HMAC encoding input is in Bytes format and the result is also in bytes format. Need developer who understands the nuances of HMAC SHA256 encoding in Swift. Attached file "postman_prereq.txt" has the pre-request code that can successfully make API request in Postman. It's this line in Postman/Javascript that is producing a different result than Apple's CryptoKit version- var signatureBytes = CryptoJS.HmacSHA256(signature,secretByteArray); versus let signatureBytes = HMAC<SHA256>.authenticationCode(for: signature.data(using: .utf8)!, using: symKey);
Related categories: Python Mobile App Development iPhone Objective C Swift