Update Password.java

Use char[] as password parameter to avoid an immutable string in memory