@iotize/device-client.js
Version:
IoTize Device client for Javascript
16 lines (15 loc) • 769 B
TypeScript
import { ShaHasher, HashType } from "../../core/crypto/sha-hasher";
import { LibWordArray, WordArray } from 'crypto-js';
export declare class CryptoHelper {
static ALGO_TYPE: HashType;
static ITERATION_NUMBER: number;
static KEY_SIZE: number;
static DEFAULT_SALT: string;
static passwordHasher: ShaHasher;
static sanitizeInput(input: Uint8Array | string | LibWordArray): string | LibWordArray;
static byteArrayToWordArray(ba: Uint8Array): LibWordArray;
static getAlgoImpl(type: HashType): any;
static wordToByteArray(word: number, length: number): Uint8Array;
static libWordArrayToByteArray(libWordArray: LibWordArray, length?: number): Uint8Array;
static wordArrayToByteArray(input: WordArray): Uint8Array;
}