messageSignature algorithme

I need to generate a signature message, encrypted using sha256 in pre-request sctipt, with those data:

messageSignature: apikey+studentId+timeStamp encrypted using sha256

can i get the algorithme of sha256 to generate a messageSignature.