Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.4K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187.1K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 442 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Is there a function to encrypt/decrypt password text?

843811
Member Posts: 49,851
Hi !
I'm new to the java.security.*, so I need your help finding a class/function in the Java API useful to encrypt/decrypt some text.
For example:
Username: myTest
Password: myPassword
In this case, "myPassword" is the string used by the user, but the database engine should never use the same password of the application.
So I need a function that I can give the "myPassword" string and return some random encrypted text like "[email protected]" which I will use to set the user password for database. Of course, the decrypting process will be useful.
Any help will be appreciated,
Rodolfo
I'm new to the java.security.*, so I need your help finding a class/function in the Java API useful to encrypt/decrypt some text.
For example:
Username: myTest
Password: myPassword
In this case, "myPassword" is the string used by the user, but the database engine should never use the same password of the application.
So I need a function that I can give the "myPassword" string and return some random encrypted text like "[email protected]" which I will use to set the user password for database. Of course, the decrypting process will be useful.
Any help will be appreciated,
Rodolfo
Comments
-
I'm new to the java.security.*,I would say you are new to this site, as you have not yet discovered that you can easily find the answer by using http://search.java.sun.com which will get you to http://developer.java.sun.com/developer/qow/archive/28Of course, the decrypting process will be useful.No, one should rarely need to decrypt passwords. Instead, store the encrypted password. Then, when at a later time the user enters username and password, encrypt the given password and compare the two encrypted values.
a.
-
Just one more question, Is the sarcasm included in this package you've mentioned?
Thanks,
-
Jeez - if you're not going to help a poster, don't post. What a freaking idiot.
- and decryption codes are useful for a great many reasons, and if you had any idea about this topic, you'd have known that - authentification isn't the only reason for ecrypting passwords.
As to answers - I have none yet - and yes, I used the search engine and I havn't found a simple and convienient answer yet. If I do find one, I'll post back here. -
Jeez - if you're not going to help a poster, don't post. What a freaking idiot.
- and decryption codes are useful for a great many reasons, and if you had any idea about this topic, you'd have known that - authentification isn't the only reason for ecrypting passwords.
As to answers - I have none yet - and yes, I used the search engine and I havn't found a simple and convienient answer yet. If I do find one, I'll post back here. -
Jeez - if you're not going to help a poster, don't post. What a freaking idiot.
- and decryption codes are useful for a great many reasons, and if you had any idea about this topic, you'd have known that - authentification isn't the only reason for ecrypting passwords.
As to answers - I have none yet - and yes, I used the search engine and I havn't found a simple and convienient answer yet. If I do find one, I'll post back here.
This discussion has been closed.