dojox/encoding/crypto/RSAKey (version 1.10)

Usage

var foo = new RSAKey(rngf);
dojox/encoding/crypto/RSAKey
Parameter Type Description
rngf undefined

See the dojox/encoding/crypto/RSAKey reference documentation for more information.

Method Summary

  • decrypt(ctext) Return the PKCS#1 RSA decryption of "ctext".
  • encrypt(text)
  • generate(B,E) Generate a new random private key B bits long, using public expt E
  • setPrivate(N,E,D) Set the private key fields N, e, d and CRT params from hex strings
  • setPrivateEx(N,E,D,P,Q,DP,DQ,C) Set the private key fields N, e, d and CRT params from hex strings
  • setPublic(N,E) Set the public key fields N and e from hex strings

Methods

decrypt(ctext)

Return the PKCS#1 RSA decryption of "ctext".

Parameter Type Description
ctext String

an even-length hex string

Returns:any | null | undefined

a plain string.

encrypt(text)
Parameter Type Description
text undefined
Returns:null | undefined
generate(B,E)

Generate a new random private key B bits long, using public expt E

Parameter Type Description
B undefined
E undefined
setPrivate(N,E,D)

Set the private key fields N, e, d and CRT params from hex strings

Parameter Type Description
N undefined
E undefined
D undefined
setPrivateEx(N,E,D,P,Q,DP,DQ,C)

Set the private key fields N, e, d and CRT params from hex strings

Parameter Type Description
N undefined
E undefined
D undefined
P undefined
Q undefined
DP undefined
DQ undefined
C undefined
setPublic(N,E)

Set the public key fields N and e from hex strings

Parameter Type Description
N undefined
E undefined
Error in the documentation? Can’t find what you are looking for? Let us know!