Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – encrypt password in flutter

Posted on November 11, 2022 By

Solution 1 :

As @zapl pointed out encrypting this password will not achieve anything … anyone can just extract it from your app source code.

If you are just looking for a way to dynamically encrypt data in Flutter have a look at this package. There are dedicated APIs to store data securely in both Android and IOS. This package simply accesses the native secure storage.

Problem :

I just want to ask best way to use encrypt password in flutter
I already use this but I think it’s not the best way for security

  String encryptAES(plainText) {
final key = encrypt.Key.fromUtf8('my32lengthsupersecretnooneknows1');
final iv = IV.fromLength(16);
final encrypter = Encrypter(AES(key));
encrypted = encrypter.encrypt(plainText, iv: iv);
return encrypted!.base64;

}

Comments

Comment posted by zapl

Security does not improve if you encrypt data in an app that also contains the encryption key hardcoded inside. Every user can simply unzip your app and read the encryption key. Assume that all source code, assets, … in your app is public.

READ  [FIXED] java - HttpUrlConnection not connecting to the server
Powered by Inline Related Posts
Android Tags:android, dart, flutter

Post navigation

Previous Post: Do you have to pay for MyNetDiary?
Next Post: [FIXED] Simple Cucumber Test is not running on Sample Android Project

Related Posts

[FIXED] android – SimpleExoPlayer doesn’t stream for the second time Android
[FIXED] java – Can’t launch activity from ADB shell Android
[FIXED] android – SafeArgs not generating Directions / Args classes on a multi module project Android
[FIXED] android – Want to create Folder in File Manager of App but couldn’t Android
[FIXED] java – invoke virtual method ‘void androidx.viewpager2.widget.ViewPager2.setAdapter(androidx.recyclerview.widget.RecyclerView$Adapter)’on null obj reference Android
[FIXED] How to set DNS1 and DNS2 in Android Programmatically & How to check DNS is set or not? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Which is stronger 19 gauge or 23 gauge?
  • Does BMW still use GM transmissions?
  • Is primary or secondary market research better?
  • What does it mean when ADT says low battery?
  • Can a baby sleep on a regular mattress?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme