You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
Can you provide some code if issue is still actual of cause =)
I've same issue because of treating RSA key from method generateRSAKey as string but its object and publicKeyString expect object
i have same issue.in my case m copying the result of generateRSAKey into publicKeyString function as follows.
var key=cryptico.generateRSAKey(PassPhrase, Bits);
console.log(key);//copied the key from console and pasted below.
var publicKey = cryptico.publicKeyString();
@awdDev786 you should pass a key in publicKeyString it will not work without it. Here is its implementation in cryptico.js:
// Returns the ascii-armored version of the public key.
my.publicKeyString = function(rsakey)
{
pubkey = my.b16to64(rsakey.n.toString(16));
return pubkey;
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Uncaught TypeError: Cannot read property 'toString' of undefined
at Object.a.publicKeyString (cryptico.min.js:105)
I put a KeyString to cryptico.publicKeyString()
and It just happen
The text was updated successfully, but these errors were encountered: