Solved

open SSL - need help please

Posted on 2004-08-18
7
267 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

Webinar May 25: Cloud Security Strategies for SMBs

Small and mid-sized businesses are a driving force behind cloud adoption, and it’s no wonder: cloud benefits are BIG.  But for all the convenience that moving to the cloud provides, where does security come into play?

Question has a verified solution.

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

This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

710 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