angular - Looking for options to secure API keys within Ionic App? - Stack Overflow

admin2025-05-02  0

I am using Ionic 7 with Angular for Mobile App development and now need to securely store a key for an REST API.

In my test app, the API key is simply stored inside webservicesponent.ts as per below example, but for production, I want to ensure that the API key is not accessible as plaintext, i.e. if someone hacks into the app stored on iOS and/or Android devices.

const MobileApiKey: string = “xxx-aaa-bb-999”;

What are the options?

转载请注明原文地址:http://anycun.com/QandA/1746134498a92051.html