@xnstream/player-sdk
Version:
XStream Player SDK - A powerful video player SDK for streaming content
9 lines • 646 B
TypeScript
import CryptoJS from "crypto-js";
export declare function generateSignature(message: string, key: string): CryptoJS.lib.WordArray;
export declare function generateRandomSalt(): string;
export declare function base64Encode(data: Uint8Array | CryptoJS.lib.WordArray): string;
export declare function base64Decode(str: string): Uint8Array;
export declare function wordArrayToUint8Array(wordArray: CryptoJS.lib.WordArray): Uint8Array;
export declare function uint8ArrayToWordArray(u8: Uint8Array): CryptoJS.lib.WordArray;
export declare function decryptAESWithCryptoJS(encryptedData: string, key: string): string;
//# sourceMappingURL=crypto.d.ts.map