473,383 Members | 1,832 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,383 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 3585
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.