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

[ENCRYPTION] Integrate the encrypt.js file as a middleware to optimize project #109

Open
AldoTu opened this issue Oct 9, 2020 · 6 comments
Assignees
Labels
Backend enhancement New feature or request Feature hacktoberfest help wanted Extra attention is needed

Comments

@AldoTu
Copy link
Contributor

AldoTu commented Oct 9, 2020

No description provided.

@AldoTu AldoTu added the Feature label Oct 9, 2020
@AldoTu
Copy link
Contributor Author

AldoTu commented Oct 9, 2020

:)

@Apurva-Singh
Copy link

Hey @AldoTu I would like to work on it. Please can you provide more deatils? Thanks!

@tomassirio
Copy link
Owner

@AldoTu think you can introduce @Apurva-Singh to the encryption middleware?

@AldoTu
Copy link
Contributor Author

AldoTu commented Oct 10, 2020

Hi @Apurva-Singh! What we want to do is to use the encrypt.js script inside the utils folder to encrypt the DB. We got to the conclusion that we should apply the script directly in the DB models so what I'm looking for is to execute the script as a middleware every time there's interaction with the models.

@aaronzshey
Copy link
Contributor

aaronzshey commented Oct 10, 2020

Some resources that I found:
https://mongoosejs.com/docs/plugins.html
https://thecodebarbarian.com/2015/03/06/guide-to-mongoose-plugins

We might be able to use Schema.post or something to manipulate the values after they're put in.

@aaronzshey
Copy link
Contributor

#114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend enhancement New feature or request Feature hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants