UNPKG
@eckidevs/payfastjs
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
A Node.js implementation of the PayFast API.
github.com/Eckhardt-D/payfastjs
Eckhardt-D/payfastjs
@eckidevs/payfastjs
/
src
/
utils
/
createSignatureFromUri.js
9 lines
(7 loc)
•
147 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
const
crypto =
require
(
"crypto"
);
module
.
exports
=
function
(
uri
) {
return
crypto .
createHash
(
"md5"
) .
update
(uri) .
digest
(
"hex"
); };