Comments (6)
@Paul75 could you clarify a bit by giving your entity definition and full query?
from typeorm-encrypted.
Hello,
I do this in repository :
public async findByLieuVie(): Promise<Usager[]> {
const query = this.createQueryBuilder('usager')
.select('COUNT(DISTINCT usager.cp) as nombre , SUBSTRING(usager.cp,1,2)', 'codePostal')
.groupBy('SUBSTRING(usager.cp,1,2)');
const result = await query.execute();
console.log('result vie nombre', result);
return result;
}
And When execute the api in POSTMAN for exemple or seeresult in console of firefox I see the good result into 'nombre' but into 'codePostal' have not see 75 but the two first crypted characters.....
Like :
[
[
{
"nombre": "25915",
"codePostal": "pM"
}
]
]
Thanks
from typeorm-encrypted.
Assuming cp
is the encrypted column -- the transformer kicks in AFTER the result is returned from the database. Complex queries won't work. To do complex queries on an encrypted field, your database would have to be in charge of encryption/decryption.
from typeorm-encrypted.
Closing since this seems like a non-issue.
from typeorm-encrypted.
Hello,
Thank you but therefore to carry out requests of this kind I cannot use your tool but in Mysql request manage decryption?
So using your program can I not get the result? I understood well ?
Thank you
from typeorm-encrypted.
@Paul75 correct. Your use-case is currently not the goal of this project. For MySQL, I'd look into MySQL encryption data-at-rest.
from typeorm-encrypted.
Related Issues (20)
- Invalid IV length HOT 4
- [Question, help needed] How to properly retain encryption keys? HOT 3
- Create a CLI tool for adding or swapping keys to an encrypted column HOT 1
- Abandoned? HOT 1
- Doesnt work inside QueryBuilder HOT 4
- Exception occurres when use FindOperator. HOT 4
- It doesn't encrypt the default value of the column HOT 2
- Issue with finding values with encrypted data HOT 17
- fix issue HOT 1
- json supprot HOT 1
- Support for typeorm 0.3 HOT 8
- Return undefined instead of null
- Peer dependencies TypeORM HOT 1
- [Question] How is key rotation handled? HOT 5
- Document how to perform key rotation
- The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined HOT 1
- Like operator not supported
- typeorm encryption nopt working in case of unique true column HOT 3
- conditionally encryption columns HOT 3
- Decrypting data externally
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typeorm-encrypted.