Showing posts with label password. Show all posts
Showing posts with label password. Show all posts

Sep 21, 2011

getResponseCode() Illegal character in URL

2 Hours i have spent on this.

String key = base64encode(password);

What's solved me the issue was this "key.replaceAll("\r\n?", "");"

Hoping that it will assist you too and save you the time i already spent,

(The base64encode method based on apache-commons base64encoder)

Dor

Nov 23, 2010

Generate random passwords

Hi,
Here is a simple way with no effort to create random passwords like with the characters you want.
You will need this member:
private static final String charset = "aAbBcCdD$#eEf!=m2MnN3oOp4P8VwWx9XyY0zZ";
And this method:
public String getPasswordString(int length) {
Random randomSeed = new Random(System.currentTimeMillis());
StringBuilder result= new StringBuilder();
for (int i = 0; i < length; i++) {
int pos = randomSeed .nextInt(charset.length());
result.append(charset.charAt(pos));
}
return result.toString();
}
Of course there is another way by using the UUID object:
UUID.randomUUID().toString();
Or maybe using an external third party library.
Hoped i helped,
Dor

reset svn eclipse password

This is a windows installation solution, for Linux installations please check the web.
1) Go to, C:\Documents and Settings\yourusername\Application Data\Subversion\auth\svn.simple
2) Delete the file