Skip to content
A better ACF Password Field that is encrypted using bcrypt.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fields
lang
.editorconfig
.gitignore
README.md
acf-encrypted-password.php
composer.json

README.md

ACF Encrypted Password

Packagist Packagist Downloads

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

composer require log1x/acf-encrypted-password

Usage

You can verify the password using PHP 5.5's password_verify() function like so:

$input = $_GET['password'];
$hash  = get_field('password');

if (password_verify($input, $hash)) {
  echo 'Correct';
} else {
  echo 'Incorrect';
}
You can’t perform that action at this time.