as the title specifies, I am trying to create an SSN attribute and a federalTaxId and after using the createStringAttribute with encrypted true it still shows as plain text in the console, is that on purpose or?
@Drake is this supposed to work like this?
@D5
I think in console yes
Yes, the data is encrypted in the database
Console decrypts it
but it should 1000% be encrypted in the console still IMO
how would you decrypt it?
Only on usage
The console is...using..it
I get what you're saying
But it's not secure to have SSN's in plain text anywhere
they should, in theory, be always encrypted and never visible unless it's specifically needed for something and even then usually the last 4, it's just used in this case to verify their application and they are who they say they are, credit check, that good stuff
I guess technically the console should never be visible to anyone but me but
so when you're dealing with encryption, the big things to always ask are when does it need to be encrypted/decrypted.
The encryption that Appwrite provides for string attributes ensures the data is encrypted in the database so that someone looking at the database can't see the value. When the data is fetched from the database, it's decrypted and when it's returned from the API, it's plaintext
If this doesn't work for you, you'll have to look into an alternative
fair enough
that said, it could be a good feature request to hide encrypted strings like how we hide API keys, function variables, etc. Honestly, the console hasn't been updated for encrypted string attributes at all 😅
it's totally understandable, I mean even thinking it through logically like
it's just me that can see it but
part of PCI compliance is just that it's not a string and visible in any context unless it's being used
for it's purpose
and it might even be fine how it is, tbh I don't know, cause it's just me, but anyways yeah I figure it could be neat
depending on your usecase, you could maybe store last 4 as an encrypted string. Or you could store a hash
true
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...