Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KavenBrowserRSA

Web Crypto API Wrap

since

2.0.9

version

2020-07-13

Hierarchy

  • KavenBrowserRSA

Index

Constructors

  • new KavenBrowserRSA(publicKey?: string, privateKey?: string): KavenBrowserRSA
  • Parameters

    • Optional publicKey: string
    • Optional privateKey: string

    Returns KavenBrowserRSA

Properties

PrivateKey: undefined | string
PublicKey: undefined | string

Methods

  • DecryptFromString<T>(data: string): Promise<T>
  • Type parameters

    • T = any

    Parameters

    • data: string

    Returns Promise<T>

  • EncryptToString<T>(data: T): Promise<string>
  • Type parameters

    • T

    Parameters

    • data: T

    Returns Promise<string>

  • Parameters

    Returns Promise<ArrayBuffer>

  • SignToString<T>(data: T, saltLength?: number): Promise<string>
  • Type parameters

    • T

    Parameters

    • data: T
    • Optional saltLength: number

    Returns Promise<string>

  • VerifyFromString<T>(data: T, signature: string, saltLength?: number): Promise<boolean>
  • Type parameters

    • T

    Parameters

    • data: T
    • signature: string
    • Optional saltLength: number

    Returns Promise<boolean>

  • Parameters

    • bits: number = 4096
    • exponent: number = 65537

    Returns Promise<KavenBrowserRSA>

Generated using TypeDoc