Subversion Repository Public Repository

litesoft

Diff Revisions 811 vs 812 for /trunk/Java/DATT/src/org/litesoft/datt/server/pos/User.java

Diff revisions: vs.
  @@ -2,6 +2,7 @@
2 2
3 3 import java.util.*;
4 4
5 + import org.litesoft.codec.*;
5 6 import org.litesoft.core.simpletypes.*;
6 7 import org.litesoft.core.typeutils.*;
7 8 import org.litesoft.core.util.*;
  @@ -51,13 +52,13 @@
51 52 public String getHexPassword()
52 53 {
53 54 String zEncryptedPassword = LLgetPassword();
54 - return (zEncryptedPassword == null) ? null : Hex.toHex( zEncryptedPassword.getBytes() );
55 + return (zEncryptedPassword == null) ? null : HexStringCodec.encode( zEncryptedPassword );
55 56 }
56 57
57 58 @Override
58 59 protected void LLsetHexPassword( String pHexPassword )
59 60 {
60 - LLsetPassword( (pHexPassword == null) ? null : new String( Hex.fromHex( pHexPassword ) ) );
61 + LLsetPassword( (pHexPassword == null) ? null : new String( HexStringCodec.decode( pHexPassword ) ) );
61 62 }
62 63
63 64 @Override