|
From: <pe...@us...> - 2003-11-19 14:37:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/passphraseagents
In directory sc8-pr-cvs1:/tmp/cvs-serv8349/src/java/org/neuclear/commons/crypto/passphraseagents
Modified Files:
CommandLineAgent.java
Log Message:
CommandLineAgent now masks the passphrase input using the JLine library which is now a dependency.
And the beginnings of a KeyGeneratorApplet
Index: CommandLineAgent.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/passphraseagents/CommandLineAgent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CommandLineAgent.java 11 Nov 2003 21:17:46 -0000 1.1
--- CommandLineAgent.java 19 Nov 2003 14:37:37 -0000 1.2
***************
*** 25,28 ****
--- 25,32 ----
$Id$
$Log$
+ Revision 1.2 2003/11/19 14:37:37 pelle
+ CommandLineAgent now masks the passphrase input using the JLine library which is now a dependency.
+ And the beginnings of a KeyGeneratorApplet
+
Revision 1.1 2003/11/11 21:17:46 pelle
Further vital reshuffling.
***************
*** 55,59 ****
try {
//TODO Figure out how to mask input
! return reader.readLine().toCharArray();
} catch (IOException e) {
System.err.println("Couldnt read line. Returning empty passphrase");
--- 59,63 ----
try {
//TODO Figure out how to mask input
! return new jline.ConsoleReader().readLine(new Character((char)0)).toCharArray();
} catch (IOException e) {
System.err.println("Couldnt read line. Returning empty passphrase");
***************
*** 64,69 ****
public static void main(String args[]) {
PassPhraseAgent dia = new CommandLineAgent();
! System.out.println("Getting passphrase... " + dia.getPassPhrase("neu://pelle@test"));
! System.out.println("Getting passphrase... " + dia.getPassPhrase("neu://pelle@test"));
System.exit(0);
--- 68,73 ----
public static void main(String args[]) {
PassPhraseAgent dia = new CommandLineAgent();
! System.out.println("Getting passphrase... " + new String(dia.getPassPhrase("neu://pelle@test")));
! System.out.println("Getting passphrase... " + new String(dia.getPassPhrase("neu://pelle@test")));
System.exit(0);
|