Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypto #170

Closed
koonsland opened this issue Sep 5, 2014 · 1 comment
Closed

Crypto #170

koonsland opened this issue Sep 5, 2014 · 1 comment

Comments

@koonsland
Copy link

I have one question.
I don't know NodeJS. So my program import all js file.
Where is forge.pki.encryptRsaPrivateKey and decryptRsaPrivateKey function?
I use debug that debuger shown "undefined is not a function".

@dlongley
Copy link
Member

dlongley commented Sep 9, 2014

I recommend using RequireJS to ensure that the forge modules are all loaded in the proper order. If not, you'll need to include them yourself in the proper order. You should be able to see the dependency order in the output by running npm run minify or npm run bundle:

util.js
cipher.js
cipherModes.js
aes.js
oids.js
asn1.js
md5.js
sha1.js
sha256.js
sha512.js
md.js
hmac.js
pem.js
des.js
pbkdf2.js
prng.js
random.js
rc2.js
jsbn.js
pkcs1.js
prime.js
rsa.js
pbe.js
pkcs7asn1.js
mgf1.js
mgf.js
pss.js
x509.js
pkcs12.js
pki.js
tls.js
aesCipherSuites.js
debug.js
kem.js
log.js
pkcs7.js
ssh.js
task.js
forge.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants