Try looking at this: How to store username and password to API in wordpress option DB?
tl;dr:
- use OAuth, if the web service supports it, or if the web server is run by yoursefl
- Store the data encrypted in the database, using as encryption wordpress installation-wide unique keys, ad you can see in the link.
Related Posts:
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- Are WordPress Plugins essential?
- I found this in a plugin. What does it do? is it dangerous?
- What are the common security flaws I need to look for? [closed]
- What could a hacker do with my wp-config.php
- Why “Contact Form 7” doesn’t update PHPmailer library?
- Secure WordPress paid plugin
- How to make media upload private? [duplicate]
- Does WordPress contain “default” anti-SQL injection code that responds with a 404 error?
- What does a security risk in a plugin look like?
- WordPress Capabilities: edit_user vs edit_users
- How to check plugins for malicious code?
- Should I install plugins to my WordPress installation from web sites having in URL “nulled” or, “null”?
- Disabled plugins are security holes – rumor or reality?
- Why am I sometimes getting a 404 error when I try to update a page with Elementor?
- Should I use RIPS tool to test my themes and plugins?
- Why users disable the WordPress update?
- How many security plugins are too many? [closed]
- Will WordPress username displayed somewhere in the site?
- Upgrading WordPress 4.0 asks for FTP password
- Is revealing just the AUTH_KEY a security issue?
- How Restrict access to admin dashboard by specific static ip?
- When is it useful to use wp_verify_nonce
- Protecting against malicious code in WordPress plugin updates
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- Why Better WP security plugin returns 418 I’m a Teapot “error”?
- How to limit WordPress pages during updates?
- rms_unique_wp_mu_pl_fl_nm.php
- How can we deal with unmaintained plugins with vulnerabilities?
- Security issues with WP sites
- Security checking in meta_box save is reluctant?
- Escape when echoed
- How can I make uploaded images in the editor load with HTTPS?
- Can we use a webservice with WordPress?
- How To Clean The Malware Infected & Hacked WordPress Websites? [duplicate]
- The safest way to automate WordPress backups
- wp_create_nonce function doesn’t work inside a plugin?
- Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)
- Upgraded to latest version – 3.0.3 and Now I get a “sufficient permissions to access this page” error
- Headers Content-Security-Policy CSP Major Issue
- Nonce failing on form submission
- Why can’t I access my Intranet LDAPS with NADI?
- Hack-Proof OR Security in WordPress — is it real?
- I should enable automatic updates?
- Can some vulnerabilities in plugins be exploited even when the plugin is inactive?
- Security and Must Use Plugins
- Is Timthumb still broken? What security measures should be taken?
- Prevent direct access to WordPress plugin assets?
- Is it safe to use admin-ajax.php in the frontend?
- Specific way to allow WordPress users to view their current password? And edit it?
- Too many login attempts
- Is there any pre-existing plugin to track and block IPs with suspicious activity on my site?
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Custom API plugin to execute 3rd party API to retrieve data
- Alternate email sending service – eg: AWS SES [closed]
- How to deal with Slow HTTP POST (slowloris) vulnerability
- Running multiple security plugins
- how do I secure my WP website from hackers? [closed]
- Regarding plugin security
- How do I determine if the user who registered is not spam?
- If I use an alternative login (e.g. CAS or other SSO) plugin, is my site protected from the recent brute force login attempts?
- Is this plugin safe to run?
- Is the Block Bad Queries Plugin Still Relevant?
- WP Insert Post If user refreshes override new post
- Hide plugins and theme from public
- WordPress search shows protected content
- Security of a WordPress Plugin
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- WordPress disable direct access of files in WordPress installation path
- Asking help regarding potential malware
- prevent anonymous access to WordPress site (non-admin site)
- Bing/msn bots is heavily requesting random of my website
- CRUD from WordPress to Business Central 365 through OData REST API
- “Fire Secure” menu item
- Securing a plugin pop-up window
- https rewrite not working for All in one security Brute force > rename login url
- Building a dynamic web app for questionnaire
- GET web api method from a WordPress PHP script
- Being hacked. Is there a list of WordPress security holes I can check against?
- create web service for android app using wordpress website
- How can i see/log all requests coming from a registration form (not from the UI)?
- Write mysql credentials in plugin
- Site is continuously accessing by several IPs
- using .htaccess only for wordpress security no plugins
- SWF in wordpress post
- Unwanted Links and Spam WordPress Pages and Posts
- File permissions for wp-minify plugin
- What is the recommended way to be notified of security updates to my plugins? [closed]
- Creating a full business website
- How I can hide my wp folders from Inspect Element (Developer Tools)
- How to Find WordPress site has backdoor login Codes
- How to delete Password Protected posts cookies when a user logged out from the site
- Auto-scroll to beginning of accordion item
- Stop the user if login from the cookies
- WordPress User Registration/ Sign Up -> Able to take Paid Certification Courses & keep track of Completed Certificates
- Block Root REST API Route using custom &/or iThemes
- How to fix a Wordfence scan that doesn’t finish?
- WordPress.Security.NonceVerification.Recommended
- Secure way to add JS Script to WordPress filesystem