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 8911741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:01:20+00:00 2026-06-15T04:01:20+00:00

I need the password for an sftp server as a config field for a

  • 0

I need the password for an sftp server as a config field for a Magento module I’m working on. Adding the field is straightforward enough, but Magento doesn’t actually encrypt the value just because it has a frontend_type of password.

<sftp_password translate="label">
    <label>SFTP Password</label>
    <frontend_type>password</frontend_type>
    <sort_order>170</sort_order>
    <show_in_default>1</show_in_default>
    <show_in_website>1</show_in_website>
    <show_in_store>1</show_in_store>
</sftp_password>

I haven’t been able to find documentation on how to properly encrypt this value. How can I ensure the password gets encrypted when it’s stored in the database?

  • 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-06-15T04:01:21+00:00Added an answer on June 15, 2026 at 4:01 am
    <sftp_password translate="label">
          <label>SFTP Password</label>
           <frontend_type>obscure</frontend_type>
          <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
          <sort_order>10</sort_order>
          <show_in_default>1</show_in_default>
          <show_in_website>1</show_in_website>
          <show_in_store>0</show_in_store>
    </sftp_password>
    
    // assuming that getConfigData return Mage::getStoreConfig($path, $storeId);
    $this->getConfigData('sftp_password'); 
    

    frontend_type : Password v.s Obscure

    Obscure extend password, but for security reasons it replace the length of the actual password number of '*'s with 6 '*'s so you can’t tell the length of the password

    See /lib/Varien/Data/Form/Element/

    Read more @ XML for Admin Configurations

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a registration form where I need to encrypt password, I've
I need to hash (MD5) all the password in our Sql Server 2000 database.
I need a regex that allow user to insert a password in a field.
I need to connect to an sftp server from Mac OS X and the
I need to password protect my application but need advice on where to store
I am new to ruby. I need to receive password as an input through
I need to verify a password using reqex. I have written one and tested
I need to compare the password entered by the user if it is valid
I need to redirect users to the Change Password page if their password has
I need to enforce the following password policy : at least 9 characters, with

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.