Solved

open SSL - need help please

Posted on 2004-08-18
7
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Getting to know the threat landscape in which DDoS has evolved, and making the right choice to get ourselves geared up to defend against  DDoS attacks effectively. Get the necessary preparation works done and focus on Doing the First Things Right.
A look at what happened in the Verizon cloud breach.
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

628 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