@adyen/api-library
Version:
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
12 lines (11 loc) • 540 B
TypeScript
import { MessageHeader, SaleToPOISecuredMessage, SecurityKey } from "../typings/terminal/models";
declare class NexoCrypto {
static encrypt(messageHeader: MessageHeader, saleToPoiMessageJson: string, securityKey: SecurityKey): SaleToPOISecuredMessage;
decrypt(saleToPoiSecureMessage: SaleToPOISecuredMessage, securityKey: SecurityKey): string;
private static validateSecurityKey;
private static crypt;
private static hmac;
private static generateRandomIvNonce;
private validateHmac;
}
export default NexoCrypto;