typeorm-encrypted
typeorm-encrypted copied to clipboard
Encrypted field for typeorm.
I have encrypted a column `email` but I can't find user that have the same email because it gives a different encryption. Is there a way to bypass that ?...
The current implementation of the transformer returns `undefined` instead of `null` when the column is null. Will it be better if it stick to the same return type as Typeorm....
When you specify column like this: ``` @Column({ default: 'TEST_DATA', transformer: new EncryptionTransformer({ key: '', algorithm: 'aes-128-cbc', ivLength: 16, }), }) encryptedColumn: string; ``` It inserts exact value that is...
- [ ] Add a key to an unencrypted column that needs to be encrypted. - [ ] Swap keys on an existing encrypted column
See `openssl list-cipher-algorithms` for a complete list. Here's the abbreviated shortlist: - [ ] aes - [ ] des - [ ] bf
Secure key generation is a topic of research. We can provide pseudo-secure methods in the README to help developers get started at least: - https://www.openssl.org/docs/man1.0.2/man1/openssl-rand.html - https://stackoverflow.com/questions/40277918/shell-script-to-generate-random-hex-numbers We can also...
@Entity() export class UserEntity extends BaseEntity { @PrimaryGeneratedColumn() id: number; @Column() name: string; @Column() age: string; @Column({ type: "varchar", nullable: false, unique: true, transformer: new EncryptionTransformer({ key: 'e41c966f21f9e1577802463f8924e6a3fe3e9751f201304213b2f845d8841d61', algorithm: 'aes-256-gcm',...
Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1. Commits 3b0994a 2.0.1 32f468f lib: fixed CVE-2023-42282 and added unit test See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any...
Is there a way to query based on partial words in encrypted data? ``` user.find({ where: { email: ILike('%' + search + '%') } }) ```