Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add encrypted attribute modifier #5190

Closed
daftspunk opened this issue Jan 11, 2014 · 1 comment
Closed

Add encrypted attribute modifier #5190

daftspunk opened this issue Jan 11, 2014 · 1 comment

Comments

@daftspunk
Copy link
Member

Related issue:
rainlab/mailchimp-plugin#1

In the same family as hashable, purgeable and jsonable; another type is needed for storing sensitive data in the database encrypted.

This should be added to October's ActiveRecord model.

class User extends \October\Rain\Database\Model
{
    protected $hashable = ['password'];

    protected $purgeable = ['password_confirmation'];

    protected $jsonable = ['permissions'];

    protected $encrypted = ['api_key']; // <== New
}
  • $encrypted - values are encrypted and decrypted for storing sensitive data.
@daftspunk daftspunk changed the title Add encryptable attribute modifier Add encrypted attribute modifier Apr 18, 2014
@daftspunk
Copy link
Member Author

This is implemented with the Encryptable trait

@LukeTowers LukeTowers transferred this issue from octobercms/library Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant