Active
Project:
Password Field
Version:
8.x-1.0
Component:
User interface
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2021 at 15:47 UTC
Updated:
26 Feb 2022 at 06:18 UTC
Jump to comment: Most recent
Comments
Comment #2
Duvan.Slabbert commentedComment #3
gaurav.kapoor commented@Duvan.Slabbert Possible to share a snippet/patch for the field formatted which you have implemented? Thanks.
Comment #4
Duvan.Slabbert commentedI'm not a developer at all, but what i have so far is the following.
I created the file password_field.permissions.yml inside the module folder with the following code
I have changed the PasswordFormatter.php file like so.
But it does not decrypt the password and i have no idea why
Comment #5
Duvan.Slabbert commentedTicket can be closed, I managed to resolve this issue
Comment #6
maharag commented@Duvan.Slabbert Hi,
I have same issue and your approach should suite me, could your share please the solution for your script to work?
thank you
Comment #7
Duvan.Slabbert commented@maharag
This was such a long time ago that I cant remember all the things I have changed, but I will post the code content of my files and maybe you can just match up with yours. Just note that when you use it, you can't use escape characters in your password, for some reason during the encrypt and decrypt it drops everything after the escape characters. Here is what I have.
password_field.permissions.yml
PasswordFormatter.php
password_field.module
Just remember to replace the insert_secret_key_here with your key and insert_iv_here with your iv.
To be honest with you, I will highly recommend you to try and not use this module as there is no active development on this module. I have since moved on and started to use the Field Encryption module. You will need to use a couple of other modules with it and there is a great video you can check out as well. See the links bellow.
Field Encryption
Key
Encrypt
Real AES
Video to Guide you
Comment #8
maharag commented@Duvan.Slabbert
great, i'll try that module. thank you!