This is unofficial Node.js porting of TPSecurityUtils.php
included in Piano PHP SDK.
npm install piano-security-utils
or
yarn add piano-security-utils
import { decrypt } from 'piano-security-utils';
const webhookData = '<encrypted webholk data>';
const privateKey = '<your piano private key>';
const result = decrypt(privateKey, webhookData);
The following TPSecurityUtils
methods are currently supported:
- hashCode
- encrypt
- urlensafe
- urldesafe
- decrypt
- hashHmacSha1
- hashHmacSha256
- hashHmacSha
- createUserRef