@mercury-labs/hashing
Version:
Mercury framework hashing library
11 lines (10 loc) • 379 B
TypeScript
import { IHashingOptions } from '../';
export declare class HashTextService {
private readonly _options;
private readonly _algorithm;
constructor(_options: IHashingOptions);
encode(text: string): string;
decode(hashedText: string): string | undefined;
encodeJSON(obj: any): string | undefined;
decodeJSON<T = any>(hashedObj: string): T | undefined;
}