Konstrukt
🚨 Konstrukt is now Umbraco UI Builder 🚨
  • Konstrukt Documentation
  • Getting Started
    • Overview
    • Installation
    • Configuration
    • User Interface
  • Guides
    • Creating your first integration
  • Areas
    • Overview
    • Sections
      • Summary Dashboards
    • Trees
      • Folders
    • Dashboards
    • Context Apps
  • Collections
    • Overview
    • The Basics
    • List Views
      • Field Views
    • Editors
    • Child Collections
      • Child Collection Groups
  • Searching
    • Overview
    • Searchable Properties
  • Filtering
    • Overview
    • Global Filters
    • Data Views
      • Data Views Builders
    • Filterable Properties
  • Actions
    • Overview
    • The Basics
    • Action Visbility
    • Inbuilt Actions
  • Cards
    • Overview
    • Count Cards
    • Custom Cards
  • Property Editors
    • Overview
    • Entity Picker
  • Advanced
    • Virtual Sub Trees
    • Encrypted Properties
    • Value Mappers
    • Repositories
    • Events
  • Extras
    • Conventions
    • Umbraco Aliases
    • Konstrukt vs UI-O-Matic
    • Known Issues
    • Changelog
Powered by GitBook
On this page
Edit on GitHub
  1. Advanced

Encrypted Properties

Configuring encrypted properties in Konstrukt, the back office UI builder for Umbraco.

There are times when you may need to collect sensitive information in a collection however don't want to persist this in a plain text format to the data storage mechanism. Konstrukt can help with this by allowing you to define properties as encrypted after which any time the value is persisted or retrieved from persistence, Konstrukt will automatically encrypt and decreypt the value.

Konstrukt uses the IDataProtectionProvider instance registered in the DI container to perform it's encryption / decription. If you need to change the encryption alogirithm, you should replace the IDataProtectionProvider instance in the the DI container.

Defining encrypted properties

AddEncryptedProperty(Lambda encryptedPropertyExpression) : KonstruktCollectionConfigBuilder<TEntityType>

Adds the given property to the encrypted properties collection. Property must be of type String. When set, the property will be encrypted/decrypted on write/read respectively.

// Example
collectionConfig.AddEncryptedProperty(p => p.Secret);
PreviousVirtual Sub TreesNextValue Mappers

Last updated 3 years ago