Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Forma segura de salvar senha

seria isso...
veja se ajuda

        edtlogin = (EditText) findViewById(R.id.editTextLogin);
        edtsenha = (EditText) findViewById(R.id.editTextSenha);
        btnentrar = (ImageButton) findViewById(R.id.buttonEntrar);
        guardadados = (CheckBox)findViewById(R.id.checkBoxLembrar);
       
       
       
        SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
        edtlogin.setText(settings.getString("Nome", ""));
        edtsenha.setText(settings.getString("Senha", ""));
//fim oncreate

    protected void onStop(){
        super.onStop();
 
        //Caso o checkbox esteja marcado gravamos o usuário
       
        if (guardadados.isChecked()){
            SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
            SharedPreferences.Editor editor = settings.edit();
            editor.putString("Nome", edtlogin.getText().toString());
            editor.putString("Senha", edtsenha.getText().toString());
           
     
            //Confirma a gravação dos dados
            editor.commit();
        }else{
            SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
            SharedPreferences.Editor editor = settings.edit();
            editor.putString("Nome", "");
            editor.putString("Senha", "");
     
            //Confirma a gravação dos dados
            editor.commit();
           
        }
     }

qauler coisa so pedir


2013/3/1 Paulo Henrique Peres <paulohenriquepo@gmail.com>
hummm, obrigado pela dica


2013/3/2 ttt <mrxrsd@gmail.com>
Se for usar algum hash, lembre-se do salt, existe um monte de rainbow table por ai...


2013/3/1 Paulo Henrique Peres <paulohenriquepo@gmail.com>
O que eu quis dizer com o gmail deixa tudo salvo, eh que ele deixa salvo que a autenticacao do usuario esta ok, Obviamente.



2013/3/1 Jonas Alves <jonasfa@gmail.com>

Não salve senhas no client NUNCA. Nem Gmail nem software sério nenhum faz uma besteira dessas.

Faça o login e guarde apenas o token.

On Feb 25, 2013 2:07 PM, "Paulo Henrique Peres" <paulohenriquepo@gmail.com> wrote:
Alguem sabe me dizer alguma forma segura de salvar senhas no banco?
O gmail por exemplo deixa tudo salvo, usuario e senha, alguem sabe que mecanismo eles usam
pra garantir o minimo de seguranca.







--
Paulo Henrique Peres
Oracle Certified Professional, Java Programmer 
Oracle Certified Professional, Web Component Developer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Paulo Henrique Peres
Oracle Certified Professional, Java Programmer 
Oracle Certified Professional, Web Component Developer

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Paulo Henrique Peres
Oracle Certified Professional, Java Programmer 
Oracle Certified Professional, Web Component Developer

--
You received this message because you are subscribed to a topic in the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/androidbrasil-dev/QeAVr3wjQ5M/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário