<div dir="ltr"><div class="gmail_extra">We will continue this discussion on the <a href="mailto:oss-support@cursuri.cs.pub.ro">oss-support@cursuri.cs.pub.ro</a> list.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 16, 2016 at 9:21 PM, Catalin Vasile <span dir="ltr"><<a href="mailto:catalinvasile92@gmail.com" target="_blank">catalinvasile92@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">This e-mail contains utilities to recover the modulus, but since I do<br>
not present a formula or too special program, I don' think I'm<br>
offering any threating information.<br>
<br>
After running the command to get my publickey (as specified in the<br>
assignment) and receiving this output:<br>
gpg: directory `/home/vasile.catalin/.gnupg' created<br>
gpg: new configuration file `/home/vasile.catalin/.gnupg/gpg.conf' created<br>
gpg: WARNING: options in `/home/vasile.catalin/.gnupg/gpg.conf' are<br>
not yet active during this run<br>
gpg: keyring `/home/vasile.catalin/.gnupg/secring.gpg' created<br>
gpg: keyring `/home/vasile.catalin/.gnupg/pubring.gpg' created<br>
Reading passphrase from file descriptor 0<br>
gpg: AES256 encrypted data<br>
gpg: encrypted with 1 passphrase<br>
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCK4ODFGfqxuTzFWipgx+vyozmr+UHb/ALXraoE+fs6hoR3wC+oVSGMX8mAd5sZm1swjQNuT+5Qyxj4FVdBmcT61KgFIqHsj/43hMiKBgr/CpAqBlHv5u8EioLYTb4vLBuqTwGR6PqF2Soau0ODrttuvZqFUgJ8qoRzmWPMiLTHXSshJa1B1zbSdTlgegTgqg7AeVwf6Lzh7ySpfU4ibgpiBIWyXSQPwGk+AYiviy17/y3o4PEfswcK9lKHIhsgPGHf+WYMOpbwxko53fCsapCo/6aeBAusHGQriGHs2pAFf26V0+0Uu1ei1gQIdsz7n919RqyP<br>
<br>
I considered this to be the public key:<br>
AAAAB3NzaC1yc2EAAAADAQABAAABAQCK4ODFGfqxuTzFWipgx+vyozmr+UHb/ALXraoE+fs6hoR3wC+oVSGMX8mAd5sZm1swjQNuT+5Qyxj4FVdBmcT61KgFIqHsj/43hMiKBgr/CpAqBlHv5u8EioLYTb4vLBuqTwGR6PqF2Soau0ODrttuvZqFUgJ8qoRzmWPMiLTHXSshJa1B1zbSdTlgegTgqg7AeVwf6Lzh7ySpfU4ibgpiBIWyXSQPwGk+AYiviy17/y3o4PEfswcK9lKHIhsgPGHf+WYMOpbwxko53fCsapCo/6aeBAusHGQriGHs2pAFf26V0+0Uu1ei1gQIdsz7n919RqyP<br>
<br>
When using this[1] method, it gives me errors trying to decipher the modulus:<br>
unable to load Public Key<br>
140611597174440:error:0906D064:PEM routines:PEM_read_bio:bad base64<br>
decode:pem_lib.c:812:<br>
<br>
vasile.catalin@jim:~/tema3$ cat pubkey.txt<br>
-----BEGIN PUBLIC KEY-----<br>
AAAAB3NzaC1yc2EAAAADAQABAAABAQCK4ODFGfqxuTzFWipgx+vyozmr+UHb/ALXraoE+fs6hoR3wC+oVSGMX8mAd5sZm1swjQNuT+5Qyxj4FVdBmcT61KgFIqHsj/43hMiKBgr/CpAqBlHv5u8EioLYTb4vLBuqTwGR6PqF2Soau0ODrttuvZqFUgJ8qoRzmWPMiLTHXSshJa1B1zbSdTlgegTgqg7AeVwf6Lzh7ySpfU4ibgpiBIWyXSQPwGk+AYiviy17/y3o4PEfswcK9lKHIhsgPGHf+WYMOpbwxko53fCsapCo/6aeBAusHGQriGHs2pAFf26V0+0Uu1ei1gQIdsz7n919RqyPp/1SzLycigtG4Gpn<br>
-----END PUBLIC KEY-----<br>
<br>
Am I doing something wrong in recovering the key?<br>
<br>
Cătă<br>
<br>
[1] <a href="http://crypto.stackexchange.com/a/18034" rel="noreferrer" target="_blank">http://crypto.stackexchange.com/a/18034</a><br>
_______________________________________________<br>
<a href="http://elf.cs.pub.ro/oss/wiki/resources/mailing-list" rel="noreferrer" target="_blank">http://elf.cs.pub.ro/oss/wiki/resources/mailing-list</a></blockquote></div><br></div></div>