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

Allow more generic way for securely storing data #46

Open
co-dax opened this issue Feb 20, 2025 · 1 comment
Open

Allow more generic way for securely storing data #46

co-dax opened this issue Feb 20, 2025 · 1 comment

Comments

@co-dax
Copy link

co-dax commented Feb 20, 2025

The current way of securely storing data is implying that the context is around username, password and server but there might exist an arbitrary situation when we need to store some data and while the current approach (just described above) does/can work it is semantically awkward to use it thus a function name like NativeBiometric.setData({key: string, value: string }) would be more applicable for whatever use case. For example, we may want to securely store a pin code and the current interface (server/username/password) would not be the most appropriate (semantically).

@co-dax
Copy link
Author

co-dax commented Feb 20, 2025

...by the way, by implementing a function like suggested above NativeBiometric.setData({key: string, value: string }) we would essentially be allowed to store even a json object by serializing it to a string using JSON.stringify() function and saving the result as a string by passing it as value parameter to the newly introduced function NativeBiometric.setData({key: string, value: string }) thus allowing us to also have the current server/username/password functionality by using server as a key and a JSON {username: string, password: string} as value in the newly implemented functionNativeBiometric.setData({key: string, value: string })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant