Encrypt and Decrypt in Java

前端 未结 7 1135
旧巷少年郎
旧巷少年郎 2020-12-01 08:24

I would like to store an encrypted password in a Java file. I saw at a solution using javax.crypto, but the problem with that was that the key was being ge

相关标签:
7条回答
  • 2020-12-01 09:23

    KeyGenerator is used to generate keys

    You may want to check KeySpec, SecretKey and SecretKeyFactory classes

    http://docs.oracle.com/javase/1.5.0/docs/api/javax/crypto/spec/package-summary.html

    0 讨论(0)
提交回复
热议问题