password « Development « Java I/O Q&A





1. Java - encrypt / decrypt user name and password from a configuration file    stackoverflow.com

We are busy developing a Java web service for a client. There are two possible choices:

  • Store the encrypted user name / password on the web service client. Read from a config. ...

2. Encrypt Password in Configuration Files? (Java)    stackoverflow.com

I have a program that reads server information from a configuration file and would like to encrypt the password in that configuration that can be read by my program and decrypted. Requirments:

  • Encrypt ...

3. how to use a supplied username and password to read a file in Java    stackoverflow.com

I need to read a bunch of binary files from a Java script running on Windows. However, the folder that the files are in has limited permissions. I (i.e. my Windows ...

4. How to encrypt/decrypt a file in Java?    stackoverflow.com


I am writing a Java application which can "encrypt" and consequently "decrypt" whatever binary file. I am just a beginner in the "cryptography" area so I would like to write a very ...

5. How to save and read user information (username ,password,and so on) by serializable?    stackoverflow.com

Is write all User information to only a file ,or every user has a self file ? And how to write information or read information of someone?

6. How can I store sensitive data in Java configuration files?    stackoverflow.com

I have some code that I want to make public. The code sends email via servers, connects to databases, and other tasks requiring usernames/passwords. I'd like to store the passwords and ...

7. Need java code for opening password protected docx file    stackoverflow.com

I want to unzip and read the password protected docx file in java. i want too know the algorithm used..please help me.. Thanks in advance...

8. Problem downloading large files on password protected site using Java    stackoverflow.com

I have been able to connect to and download files such as text and images from a password protected site by using a java's password authenticator class and overriding it. However ...

9. Securely saving password locally java?    stackoverflow.com

I am working on a java application and would like to save password locally on a file. I am not sure how to achieve this, any help would be appreciated. ...





10. is active directory have any root password    bytes.com

hi buddies, presently i am working on LDAP and active directory implementation for my module. for active directory server is it having any root password like LDAP kindly let me know ...

11. java: create zip-file with password    bytes.com

Hi together, i have been searching for hours but i can't find the right solution for my problem. my problem is a simple one: i have the file "C:\test\aFile.txt" and wants ...

12. Storing a password    coderanch.com

Hello everyone! How can I store passwords in a file so that they are secure? My idea is to use some kind of hashing to encrypt them and put everything in a file which is only readable (so that noone can "change" the pwords). Is there a way to do this? Thanks. Tom.

13. HELP!!!! verifying userID & Password from Applette    coderanch.com

I have been given an assinment by a Java teacher to create a banking application where the first screen will be the welcome to the program, User Input of UserID & Password. & an Submit & Cancel Button. Once the Submit button is pressed the program meeds to pull the UserID & Paswd from the screen & compare it to information ...

14. checking password    coderanch.com

15. Password protection in java.io.File    coderanch.com

Hi, Welcome to JavaRanch! To "set a password for a file" means to encrypt the content, somehow, such that it can only be opened with a matching decryption program using that same password. In the example you give, there is only one, possibly two options: First, if Excel has a way to password-protect spreadsheets, then an API that works with spreadsheet ...

16. How to get back the Access MDB file password?`    coderanch.com

Hi All: I have a Microsoft Access database file, but I have lot the password. Because I do it long time ago, so is it any ways I can see the data to skip the password. or export to another format database file? Please help me this, I reall need the data. regards hongwei





17. code to store uname & password in file    coderanch.com

18. How to maintain security of a password file?    coderanch.com

How could one best maintain the security of a password file for a running java application? I have a batch application which maintains a password file to its databases. This file is in clear text which is not a good idea nor a good solution. Is there any way to secure this file other than to adjust the file permissions?

19. Forget My RAR Password    coderanch.com

20. Find the password with dictionary attack    coderanch.com

I have 2 files , one zip file and one more txt file.I want to find out the password of the zip file with the help of txt file.In txt file I have some words and one of them is the right password.The problem is here , when I put the right word at first the programm works but when i ...

21. Password Protect a File or Directory    coderanch.com

Hi All, I need to make an application where in from a servlet a file is to be created and stored on local pc, which contains some important info.. Now What I want is that When I create a file it should be password protected so that when anybody tries to open it directly (i.e. by double clicking on the file) ...

22. Checking common files for password protection    coderanch.com

Morning All I'm not trying to gain access to files here, what I need to do is simply check files that people are uploading to make sure that they don't have a password. File types are the common ones, i.e. Word, Excel, PDF etc. Currently I use Neevia, but this requires reading the entire file into memory and I'm dealing with ...

23. How to create password protected file    coderanch.com

I would have answered the question the same way Rob did, but on closer reading, I can see James's point. Encrypting a file certainly wouldn't prevent someone from deleting or writing to the file. That could be accomplished by setting the file's owner and read, write, execute bits on Mac, Unix, or Linux. You'd then have to "su" to the correct ...

26. I need to change values in a file owned by root (root password is constant)    forums.oracle.com

Your application needs to be running as root, or the user that started the application needs to have root level permissions for at least specific funtions (i.e. /etc/group, RBAC, sudo, etc). Java cannot change the users permission level in anyway that the user cannot already do himself. If you wish to find out how to use the /etc/group file, RBAC, sudo, ...

28. Create password protected directory    forums.oracle.com

P.S. I know the platform, it going to run on: Windows XP sp2 Maybe i posted this theme in the wrong thread - then please help me and give an advice^ where it should be posted. Edited by: Antilless on Sep 10, 2010 10:05 AM Edited by: Antilless on Sep 10, 2010 10:06 AM

29. Read from password protected directory?    forums.oracle.com

Hope you guys can help, I have a hosted domain and some web space and on that I have a file stored that my program reads from. I don't want just anybody to be able to find and read that file online by going to the URL. So my solution was to secure the directory that the file is in so ...

30. Saving user's password to a file    forums.oracle.com

I'm creating an application for a school which requires a login password for the teachers, but not the students. The application will run all day, and shuts down at night, so in order to save the password (all teachers have the same password) i was thinking saving it to a file and having the application import the file on startup. I've ...

31. How to make a file password protected?    forums.oracle.com

32. Checking PDF/DOC/XLS files for passwords    forums.oracle.com

33. Where does NISFactory get the password file?    forums.oracle.com

34. Storing password in a file    forums.oracle.com

I want to store password in a local file in an encrypted format so that no one can retrieve it and later I want to retrieve it from that file to match with the given password.Could anybody pls give me an idea how I can do it.Or if there is any other way I can do it.I want an example of ...

35. please needs help with dir, password, download files    forums.oracle.com

BufferedReader kb = new BufferedReader( new InputStreamReader(System.in)); boolean finished = false; while( ! finished ) { String input; String[] cmdArgs; System.out.print("myftp> "); try { input = kb.readLine(); cmdArgs = input.split(" s"); if(cmdArgs[0].equals("exit") ) { finished = true; } else if( cmdArgs[0].equals("dir")) { dirCommand(); } else if (cmdArgs[0].equals("get")) { //(); } else if( cmdArgs[0].equals("pwd")) { System.out.println(host+path); } else if( cmdArgs[0].equals("cd")) { if(cmdArgs.length!= ...

36. Password Protecting Files    forums.oracle.com

Does anyone know of any good tools to use within a Java app that allow for the program to password protect the file before the user downloads the file? A specific example for our system is a user will click an XLS link that will call a servlet that will create the spreadsheet (using POI) and allow them to Open or ...

37. Adding username and password to a file:    forums.oracle.com

This is a little difficult. Almost every (if not all) implementations require that you store the passwords (or some representation of the passwords like their hash) on the computer. So ultimately its hard to guarentee any real security. I guess it all depends on the audience youre trying to protect yourself from. If its just the everyday user you could probably ...

38. Verify file is password protected.    forums.oracle.com