Methods
decrypt
- decrypt(ctext: string): string
-
Parameters
Returns string
encrypt
- encrypt(text: string): string
-
Parameters
Returns string
generate
- generate(B: number, E: string): void
setPrivate
- setPrivate(N: string, E: string, D: string): void
-
Parameters
-
N: string
-
E: string
-
D: string
Returns void
setPrivateEx
- setPrivateEx(N: string, E: string, D: string, P: string, Q: string, DP: string, DQ: string, C: string): void
-
Parameters
-
N: string
-
E: string
-
D: string
-
P: string
-
Q: string
-
DP: string
-
DQ: string
-
C: string
Returns void
setPublic
- setPublic(N: string, E: string): void
verifyString
- verifyString(message: string, signature: string): boolean
-
Parameters
-
message: string
-
signature: string
Returns boolean