https://github.com/log1x/acf-encrypted-password
A better ACF Password Field that is encrypted using bcrypt.
https://github.com/log1x/acf-encrypted-password
acf custom fields wordpress wordpress-plugin
Last synced: 8 months ago
JSON representation
A better ACF Password Field that is encrypted using bcrypt.
- Host: GitHub
- URL: https://github.com/log1x/acf-encrypted-password
- Owner: Log1x
- Created: 2017-09-02T04:23:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-04T10:18:08.000Z (almost 7 years ago)
- Last Synced: 2025-07-15T02:54:16.603Z (11 months ago)
- Topics: acf, custom, fields, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ACF Encrypted Password
[](https://packagist.org/packages/log1x/acf-encrypted-password)
[](https://packagist.org/packages/log1x/acf-encrypted-password)
This is a simple ACF field to use in place of the default Password field to encrypt the password stored in the database using PHP 5.5's `password_hash()` function.
## Requirements
* PHP >= 7
* ACF >= 5
## Installation
```bash
$ composer require log1x/acf-encrypted-password
```
## Usage
You can verify the password using PHP 5.5's `password_verify()` function like so:
```php
$input = $_GET['password'];
$hash = get_field('password');
if (password_verify($input, $hash)) {
echo 'Correct';
} else {
echo 'Incorrect';
}
```