Edwin-Luijten / strapi-encryptable-field

Encrypts values on save, and decrypts on fetch.
MIT License
14 stars 6 forks source link

Plugin added but not displayed in strapi server #12

Open sivaprasad-kella opened 1 year ago

sivaprasad-kella commented 1 year ago

added the plugin to the project. enabled the plugin in plugin.xml. still the plugin is not displayed in portal to add ENCRYPTION)KEY

thematrixdev commented 1 year ago

the encryption-key should be added via environmental variable but not on admin panel

sivaprasad-kella commented 1 year ago

The issue is resolved when i run build. Thank you for prompt reply.

The new issue i am facing is , in some tables encryption and decryption working fine but in some tables encryption is happening but when we fetch the data from table decryption is not happening. it is giving directly the encrypted string. ex. "data": "366e1d4d7370cd044d88884635e71c3e:72354624e4be275d33050223cc389f65",

any idea what causing the issue?

thematrixdev commented 1 year ago

How did you fetch the data? If you use build-in method I think the data will be decrypted.

thematrixdev commented 1 year ago

By the way, do you see the data encrypted or decrypted on admin panel? https://github.com/Edwin-Luijten/strapi-encryptable-field/issues/11

sivaprasad-kella commented 1 year ago

As the encryption and decryption happening automatically, i am not calling any methods for decryption.

i can see data in admin panel as i have configured the super user in the custom field settings.

Get Outlook for iOShttps://aka.ms/o0ukef


From: theMatrix.dev @.> Sent: Thursday, July 20, 2023 6:35:11 PM To: Edwin-Luijten/strapi-encryptable-field @.> Cc: Durga Siva Prasad Kella @.>; Author @.> Subject: Re: [Edwin-Luijten/strapi-encryptable-field] Plugin added but not displayed in strapi server (Issue #12)

How did you fetch the data? If you use build-in method I think the data will be decrypted.

— Reply to this email directly, view it on GitHubhttps://github.com/Edwin-Luijten/strapi-encryptable-field/issues/12#issuecomment-1643891890, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAIIZT62MNKEIRHOSVNGWULXREUIPANCNFSM6AAAAAA2PY6AV4. You are receiving this because you authored the thread.Message ID: @.***>

thematrixdev commented 1 year ago

Do you mean you have not created any customer "controller" or "service" to fetch the data from Strapi, but it showed encrypted data via REST API call?

According to the screenshot this plugin shown in GitHub README, the encrypted data is shown encrypted on admin panel. I have got the same case too. Strange...

sivaprasad-kella commented 1 year ago

I am using services and controllers to fetch data from database using strai REST api. When i am saving data , the data is saving in encrypted format and when i retrieve it is giving me decrypted data automatically. I don't have to do anything w.r.t encryption and decryption.

But then in some tables the data is encrypted and when i am fetching data , it is not giving me decrypted data. Fetching encrypted data only.

Working for some tables and not working for some tables is my problem.

In the admin panel the data is encrypted. If i enable super user in custom field settings i can see decrypted data also.

Get Outlook for iOShttps://aka.ms/o0ukef


From: theMatrix.dev @.> Sent: Thursday, July 20, 2023 6:53:21 PM To: Edwin-Luijten/strapi-encryptable-field @.> Cc: Durga Siva Prasad Kella @.>; Author @.> Subject: Re: [Edwin-Luijten/strapi-encryptable-field] Plugin added but not displayed in strapi server (Issue #12)

Do you mean you have not created any customer "controller" or "service" to fetch the data from Strapi, but it showed encrypted data via REST API call?

According to the screenshot this plugin shown in GitHub README, the encrypted data is shown encrypted on admin panel. I have got the same case too. Strange...

— Reply to this email directly, view it on GitHubhttps://github.com/Edwin-Luijten/strapi-encryptable-field/issues/12#issuecomment-1643919872, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BAIIZTZCVL3TSQRQ7D7MZLLXREWMTANCNFSM6AAAAAA2PY6AV4. You are receiving this because you authored the thread.Message ID: @.***>