Загрузка...

How to hide your API keys SAFELY on Flutter

In every project, we have some secret or important stuff, like API keys or credentials, that we don’t want others to access. These are very sensitive, and for security, we shouldn’t even publish them to Git.

In this video, I’ll show you two ways to hide API keys or sensitive data in Flutter. The first approach uses --dart-define, which comes built-in with Flutter and is the recommended way. The second approach uses a .env file, which requires a package

►For the 3D intro, I'm using Rotato: https://bit.ly/3heGagj
►Support Us: https://www.patreon.com/theflutterway

► Social Media
GitHub: https://github.com/abuanwar072
Twitter: https://twitter.com/theflutterway
Twitter: https://twitter.com/abuanwar072 (my personal profile)
Facebook: https://www.facebook.com/theflutterway

► Timestamps
0:00 Intro
0:08 Method 1: --dart-define
0:22 Access the key
0:49 Get keys from JSON
1:22 VS Code setup to get the keys
1:56 From .env

Thanks for watching!
Make sure to like + Subscribe For More!

Видео How to hide your API keys SAFELY on Flutter канала The Flutter Way
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять