473,397 Members | 2,116 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Find hard-coded password strings in project's code - Can it be done automatically?

Hey,

I have a very big project with thousands and thousands of code lines. Until now we have used hard-coded passwords

and we wish to stop. The problem is how detect all the places in the code where we used hard-coded passwords - Do

you know a way of doing it automatically?

If there is a free or not-free program that you know that can help it will be good.

Thanks alot!
Mar 18 '09 #1
2 3587
This is a function of your editor and not really java specific.
Mar 18 '09 #2
chaarmann
785 Expert 512MB
You can use a regular expression in any editor (jEdit, eclipse, Notepad+, etc.) and then search with option "find in all files"

If you know the passwords, you can list them like
"password1|password2|password3"

If you don't know, you can search everything like
"\w+"
Mar 19 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jibey Jacob | last post by:
Hello I am not able to find the C# compiler executable on my hard drive. I searched for it; couldn't find it; so I uninstalled the .NET Framework SDK 1.1 and installed it again. I still can't find...
1
by: Dennis | last post by:
Hi I'm trying to implement a vector of vectors where find can be used to find a vector<double> in the vectors of vectors, that is hard to understand i guess. What I mean is that I got a vector...
0
by: SoftComplete Development | last post by:
AlphaTIX is a powerful, fast, scalable and easy to use Full Text Indexing and Retrieval library that will completely satisfy your application's indexing and retrieval needs. AlphaTIX indexing...
11
by: JoshuaF | last post by:
hello everyone i am very new to postgresql 7.3.3 and am using it on my mac G4 OS X and i am having some trouble which i hope you can help me out with some answers to my questions: 1.) How can I...
24
by: shafique | last post by:
Hello, Can anybody have idea as how to find it there exist consective one's in a word/dword using bitwise operatiors in C language. Obviously this can be done by shifting and looping one by...
8
by: active | last post by:
In a program how do I find out things about the default printer, like page orientation, paper size, margin offset etc. ? So much is new in dotnet. I'm overwhelmed trying to convert from VB6!! ...
0
by: John Doe | last post by:
Windows XP Visual Studio 2003 NET Visual C++ When I tried to run without debugging, I get a message that says it can't find a path. The path did exist on my computer. I cannot find the path...
16
by: Otie | last post by:
Hi, Is there a way for VB5 to determine exactly where on a hard drive a .exe file is stored upon the .exe file's first copying to the hard drive? What I need to know is the exact hard drive...
4
by: kevin | last post by:
I want to return a list of every sp that is called by a given sp, and sp_depends is anything but... The user will have to supply the name of the first/top level SP and then my app will do the...
13
usafshah
by: usafshah | last post by:
hi all i'm installing windows xp on Maxtor SATA 300 GB but setup prompts with the error of: setup did not find any hard disk drives.... its showing in bios I tried to download drivers for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.