UNPKG

582 BTypeScriptView Raw
1import * as i0 from "@angular/core";
2/**
3 * Abstraction for crypto algorithms
4 */
5export declare abstract class HashHandler {
6 abstract calcHash(valueToHash: string, algorithm: string): Promise<string>;
7}
8export declare class DefaultHashHandler implements HashHandler {
9 calcHash(valueToHash: string, algorithm: string): Promise<string>;
10 toHashString2(byteArray: number[]): string;
11 toHashString(buffer: ArrayBuffer): string;
12 static ɵfac: i0.ɵɵFactoryDeclaration<DefaultHashHandler, never>;
13 static ɵprov: i0.ɵɵInjectableDeclaration<DefaultHashHandler>;
14}