Re: Using Crypt::DSA
Mike Friedman <mikef@xxxxxxxxxxxxxxxx> wrote in
news:deb031$il3$1@agate.berkeley.edu:
> How do I extract (and write to disk) just the public key,
....
> I must admit that the documentation for Crypt::DSA::Key, which
> should explain this, is not at all clear to me.
I have never used the said modules, but, looking at the documentation:
<URL:
http://search.cpan.org/~btrott/Crypt-DSA-0.13/lib/Crypt/DSA/Key.pm>
Any of the key attributes can be accessed through combination get/set
methods. The key attributes are: p, q, g, priv_key, and pub_key. For
example:
$key->p($p);
my $p2 = $key->p;
....
So, I would try
printf "Public key: %s\n", $key->pub_key;
to print the public key.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
Relevant Pages
- [Full-disclosure] Announce - Release RFIDIOt ver 0.1n (June 2007)
... extract image from CBEFF block in EF.DG2 ... The other major enhancement is extraction of public key certificates ... Here is example output of the extraction process on a UK passport: ... Signature Algorithm: sha256WithRSAEncryption ... (Full-Disclosure) - Announce - Release RFIDIOt ver 0.1n (June 2007)
... extract image from CBEFF block in EF.DG2 ... The other major enhancement is extraction of public key certificates from the Security Object. ... Here is example output of the extraction process on a UK passport: ... Signature Algorithm: sha256WithRSAEncryption ... (Bugtraq) - RE: SN.EXE and Exported Public Keys
... public/private key pair against the public key that was extracted from the ... sn -p privatepair.snk publickey.snk - Extract only the public portion of the ... sn -tp publickey.snk - use SN.exe to display public key and public key token ... (microsoft.public.dotnet.framework) - Extracting an X509Certificate from XML
... I have a SOAP envelope digitally signed and including an X509 certificate. ... I'd like to verify the signature using the public key from the certificate but cannot work out how to get the public key in my KeySelector implementation ... The above XML is loaded into a org.w3c.dom.Document, I can extract the BinarySecurityToken into a org.w3c.dom.Node and get at the BASE64 data using getTextContentbut I can't work out how to extract a java.security.PublicKey from it. ... (comp.lang.java.security) - Re: RSACryptoServiceProvider or similar
... So you're saying a person couldn't extract the public key from program ... and "decrypt" it on their own? ... Unless they replace the public key, or just bypass the call altogether. ... what you need is a better business model that doesn't depend on ... (sci.crypt) |
|