[oss] [Assignment 3] 3rd exercise. Recover modulus
Catalin Vasile
catalinvasile92 at gmail.com
Sat Jan 16 21:21:11 EET 2016
This e-mail contains utilities to recover the modulus, but since I do
not present a formula or too special program, I don' think I'm
offering any threating information.
After running the command to get my publickey (as specified in the
assignment) and receiving this output:
gpg: directory `/home/vasile.catalin/.gnupg' created
gpg: new configuration file `/home/vasile.catalin/.gnupg/gpg.conf' created
gpg: WARNING: options in `/home/vasile.catalin/.gnupg/gpg.conf' are
not yet active during this run
gpg: keyring `/home/vasile.catalin/.gnupg/secring.gpg' created
gpg: keyring `/home/vasile.catalin/.gnupg/pubring.gpg' created
Reading passphrase from file descriptor 0
gpg: AES256 encrypted data
gpg: encrypted with 1 passphrase
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCK4ODFGfqxuTzFWipgx+vyozmr+UHb/ALXraoE+fs6hoR3wC+oVSGMX8mAd5sZm1swjQNuT+5Qyxj4FVdBmcT61KgFIqHsj/43hMiKBgr/CpAqBlHv5u8EioLYTb4vLBuqTwGR6PqF2Soau0ODrttuvZqFUgJ8qoRzmWPMiLTHXSshJa1B1zbSdTlgegTgqg7AeVwf6Lzh7ySpfU4ibgpiBIWyXSQPwGk+AYiviy17/y3o4PEfswcK9lKHIhsgPGHf+WYMOpbwxko53fCsapCo/6aeBAusHGQriGHs2pAFf26V0+0Uu1ei1gQIdsz7n919RqyP
I considered this to be the public key:
AAAAB3NzaC1yc2EAAAADAQABAAABAQCK4ODFGfqxuTzFWipgx+vyozmr+UHb/ALXraoE+fs6hoR3wC+oVSGMX8mAd5sZm1swjQNuT+5Qyxj4FVdBmcT61KgFIqHsj/43hMiKBgr/CpAqBlHv5u8EioLYTb4vLBuqTwGR6PqF2Soau0ODrttuvZqFUgJ8qoRzmWPMiLTHXSshJa1B1zbSdTlgegTgqg7AeVwf6Lzh7ySpfU4ibgpiBIWyXSQPwGk+AYiviy17/y3o4PEfswcK9lKHIhsgPGHf+WYMOpbwxko53fCsapCo/6aeBAusHGQriGHs2pAFf26V0+0Uu1ei1gQIdsz7n919RqyP
When using this[1] method, it gives me errors trying to decipher the modulus:
unable to load Public Key
140611597174440:error:0906D064:PEM routines:PEM_read_bio:bad base64
decode:pem_lib.c:812:
vasile.catalin at jim:~/tema3$ cat pubkey.txt
-----BEGIN PUBLIC KEY-----
AAAAB3NzaC1yc2EAAAADAQABAAABAQCK4ODFGfqxuTzFWipgx+vyozmr+UHb/ALXraoE+fs6hoR3wC+oVSGMX8mAd5sZm1swjQNuT+5Qyxj4FVdBmcT61KgFIqHsj/43hMiKBgr/CpAqBlHv5u8EioLYTb4vLBuqTwGR6PqF2Soau0ODrttuvZqFUgJ8qoRzmWPMiLTHXSshJa1B1zbSdTlgegTgqg7AeVwf6Lzh7ySpfU4ibgpiBIWyXSQPwGk+AYiviy17/y3o4PEfswcK9lKHIhsgPGHf+WYMOpbwxko53fCsapCo/6aeBAusHGQriGHs2pAFf26V0+0Uu1ei1gQIdsz7n919RqyPp/1SzLycigtG4Gpn
-----END PUBLIC KEY-----
Am I doing something wrong in recovering the key?
Cătă
[1] http://crypto.stackexchange.com/a/18034
More information about the oss
mailing list