Search
Preparing search index...
The search index is not available
kaven-basic
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
kaven-basic
KavenBrowserRSA
Class KavenBrowserRSA
Web Crypto API Wrap
since
2.0.9
version
2020-07-13
Hierarchy
KavenBrowserRSA
Index
Constructors
constructor
Properties
Private
Key
Public
Key
Methods
Decrypt
Decrypt
From
String
Encrypt
Encrypt
To
String
Sign
Sign
To
String
Verify
Verify
From
String
Create
Constructors
constructor
new
Kaven
BrowserRSA
(
publicKey
?:
string
, privateKey
?:
string
)
:
KavenBrowserRSA
Parameters
Optional
publicKey:
string
Optional
privateKey:
string
Returns
KavenBrowserRSA
Properties
Readonly
Private
Key
Private
Key
:
undefined
|
string
Readonly
Public
Key
Public
Key
:
undefined
|
string
Methods
Decrypt
Decrypt
(
data
:
TDataOfKavenBrowserRSA
)
:
Promise
<
any
>
Parameters
data:
TDataOfKavenBrowserRSA
Returns
Promise
<
any
>
Decrypt
From
String
Decrypt
From
String
<
T
>
(
data
:
string
)
:
Promise
<
T
>
Type parameters
T =
any
Parameters
data:
string
Returns
Promise
<
T
>
Encrypt
Encrypt
(
data
:
TDataOfKavenBrowserRSA
)
:
Promise
<
any
>
Parameters
data:
TDataOfKavenBrowserRSA
Returns
Promise
<
any
>
Encrypt
To
String
Encrypt
To
String
<
T
>
(
data
:
T
)
:
Promise
<
string
>
Type parameters
T
Parameters
data:
T
Returns
Promise
<
string
>
Sign
Sign
(
data
:
TDataOfKavenBrowserRSA
, saltLength
?:
number
)
:
Promise
<
ArrayBuffer
>
Parameters
data:
TDataOfKavenBrowserRSA
Optional
saltLength:
number
Returns
Promise
<
ArrayBuffer
>
Sign
To
String
Sign
To
String
<
T
>
(
data
:
T
, saltLength
?:
number
)
:
Promise
<
string
>
Type parameters
T
Parameters
data:
T
Optional
saltLength:
number
Returns
Promise
<
string
>
Verify
Verify
(
data
:
TDataOfKavenBrowserRSA
, signature
:
TDataOfKavenBrowserRSA
, saltLength
?:
number
)
:
Promise
<
boolean
>
Parameters
data:
TDataOfKavenBrowserRSA
signature:
TDataOfKavenBrowserRSA
Optional
saltLength:
number
Returns
Promise
<
boolean
>
Verify
From
String
Verify
From
String
<
T
>
(
data
:
T
, signature
:
string
, saltLength
?:
number
)
:
Promise
<
boolean
>
Type parameters
T
Parameters
data:
T
signature:
string
Optional
saltLength:
number
Returns
Promise
<
boolean
>
Static
Create
Create
(
bits
?:
number
, exponent
?:
number
)
:
Promise
<
KavenBrowserRSA
>
Parameters
bits:
number
= 4096
exponent:
number
= 65537
Returns
Promise
<
KavenBrowserRSA
>
Exports
Kaven
BrowserRSA
constructor
Private
Key
Public
Key
Decrypt
Decrypt
From
String
Encrypt
Encrypt
To
String
Sign
Sign
To
String
Verify
Verify
From
String
Create
Generated using
TypeDoc
Web Crypto API Wrap
2.0.9
2020-07-13