cognito-srp
Version:
Secure Remote Password protocol implementation compatible with Amazon Cognito.
14 lines (13 loc) • 462 B
TypeScript
/// <reference types="node" />
export declare class Session {
private poolname;
private username;
private scramblingParameter;
private hkdf;
private key;
constructor(poolname: string, username: string, key: Buffer, scramblingParameter: Buffer);
constructor(poolname: string, username: string, hkdf: string);
calculateSignature(secretBlock: string, timestamp: string): string;
getHkdf(): string;
private calculateHkdf();
}