{"repo":"generalpiston/typeorm-encrypted","free":true,"listed":false,"github":"https://github.com/generalpiston/typeorm-encrypted","clone":"git clone https://github.com/generalpiston/typeorm-encrypted.git","description":"Encrypted field for typeorm.","language":"TypeScript","stars":80,"topics":["typeorm","database","encryption","encrypt","encrypted","encrypted-store","typescript"],"license":"MIT","category":"security-tools","readme_excerpt":"typeorm-encrypted Encrypted field for typeorm. Installation Example This library can invoked in 2 ways: transformers or subscribers. In both of the examples below, the Key and IV vary based on the algorithm. See the node docs for more info. Transformers (Recommended) The following example has the field automatically encrypted/decrypted on save/fetch respectively. For JSON fields you can use JSONEncryptionTransformer . More information about transformers is available in the typeorm docs. Subscribers The following example has the field automatically encrypted/decrypted on save/fetch respectively. Entities and subscribers can be configured via ormconfig.json and environment variables as well. See the typeorm docs for more details. How to use a configuration file The following example is how you can create a config stored in a separate and use it encryption-config.ts user.entity.ts It's possible to customize the config if you need to use a different ivLength or customize other fields, a brief example below user.entity.ts FAQ Why won't complex queries work? Queries that transform the encrypted column wont work because transformers and subscribers operate outside of the DBMS. What alogorithm should I use? Unless you need to maintain compatibility with an older system (or you know exactly what you're doing), you should use \"aes-256-gcm\" for the mode. This means that the encryption keys are are 256 bits (32-bytes) long and that the mode of operation is GCM (Galois Counter Mode). GCM ","default_branch":null,"files":null,"tree":[],"storefront":"/r/generalpiston","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/generalpiston/typeorm-encrypted/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}