Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6996847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:12:34+00:00 2026-05-27T20:12:34+00:00

I want to encrypt a file using openssl. I can do it by using

  • 0

I want to encrypt a file using openssl. I can do it by using

openssl des3 -salt -in /pritom/uaeyha_com.sql -out /pritom/a.ss 

When I run this command, it gets password from me two times. I want to set password with the script and I used

openssl des3 -salt -in /pritom/uaeyha_com.sql -out /pritom/a.ss -pass pritom 

but it gives me the following error:

Invalid password argument "pritom"
Error getting password 

What can I do now?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T20:12:34+00:00Added an answer on May 27, 2026 at 8:12 pm

    Try something like this –

    openssl des3 -salt -in /pritom/uaeyha_com.sql -out /pritom/a.ss -pass pass:pritom
    

    From the man page:

    PASS PHRASE ARGUMENTS
    Several commands accept password arguments, typically using -passin and -passout for input and output
    passwords respectively. These allow the password to be obtained from a variety of sources. Both of these
    options take a single argument whose format is described below. If no password argument is given and a
    password is required then the user is prompted to enter one: this will typically be read from the current
    terminal with echoing turned off.

       pass:password
                 the actual password is password. Since the password is visible to utilities (like 'ps' under Unix)
                 this form should only be used where security is not important.
    
       env:var   obtain the password from the environment variable var. Since the environment of other processes is
                 visible on certain platforms (e.g. ps under certain Unix OSes) this option should be used with
                 caution.
    
       file:pathname
                 the first line of pathname is the password. If the same pathname argument is supplied to -passin and
                 -passout arguments then the first line will be used for the input password and the next line for the
                 output password. pathname need not refer to a regular file: it could for example refer to a device
                 or named pipe.
    
       fd:number read the password from the file descriptor number. This can be used to send the data via a pipe for
                 example.
    
       stdin     read the password from standard input.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any section in my web.config file that I want to encrypt I run this
I want to take a video file and encrypt it using java. For now
I want to encrypt few files using python what is the best way I
I want a form where user can change password. I am able to encrypt
Is there any javascript function that can encrypt data: For example i want to
So say I want to encrypt a file and the only way I want
I am having some problems in using CryptoStream when I want to encrypt a
I'm having a download application and I want to encrypt the links for file
In itext, can we decrypt a pdf file using the user password that was
I am using visual studio 2010 my project is that, i want to encrypt

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.