Solved

open SSL - need help please

Posted on 2004-08-18
7
266 Views
Last Modified: 2010-04-11
Hello everyone

I am having extreme problems in using open ssl, I am working on my university assignment and i am attempting to perform the following encryption using base64 and OpenSSL.  I have had limited success and i think i have had no luck in reading almost every support documennt on the openssl homepage.  I anyone knows how to encrypt a messgage or string i would be ever so happy.

The question is as follows


Using OpenSSL, calculate the base64 encoding of your student number - use the eight numeric characters of your student number padded with leading zeros if necessary. Your answer should represent the encoding of exactly the eight characters of your student number - no more and no less.

My student Number is 05047862

I was trying this command

openssl base64 -e 05047862
......no luck

I am unsure wether i have to put it into a text file and just excrypt that however the wording does not seem to suggest that it is anything other than a string encryption.. However due to my lack of understanding on openssl i am a lost cause.

Thanks in  advance

0
Comment
Question by:innovisiontechnology
  • 3
7 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 25 total points
ID: 11830826
echo 05047862|openssl base64 -e
0
 
LVL 1

Expert Comment

by:mpvbrao
ID: 11832332
echo adds a new line, which should be supressed with an option like '-n'.
0
 
LVL 2

Assisted Solution

by:Scorp888
Scorp888 earned 25 total points
ID: 11931198
Try using echo to put the id into a file.

# echo 05047862 > student.file

Then

# openssl base64 -e -in student.file

Gives you your encryption

or as other poster suggests, echo it straight into openssl.

Depends if you want to do files, as in read from a file and encrypt, or want to do it from input.

If you want to read a file, and then output an excrpted version, then

# openssl base64 -e -in student.file -out student.enc

to prove that works.

# openssl base64 -d -out student.enc

Then gets you your file back.

I'd not really call it ecryption though, more encoding, as no passphrase or key is used.
0
 
LVL 2

Expert Comment

by:Scorp888
ID: 11961989
did this work for you?
do you need more help?
0
 
LVL 2

Expert Comment

by:Scorp888
ID: 15880761
Sounds fair to me.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you thought ransomware was bad, think again! Doxware has the potential to be even more damaging.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question