Thread: [Quickfix-developers] Need info on Quick Fix password encryption.
Brought to you by:
orenmnero
From: Zuber <moh...@in...> - 2010-08-02 12:18:34
|
Hi, I want to encrypt my FIX login Password as its getting displayed in the Qickfix log files. I have gone through the manual which indicates abt a tag 'EncryptMethod' (98). If some one could elaborate on the use of this tag, it would be very helpful. Thanks Zuber -- View this message in context: http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29324628.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Kenny S. <ks...@co...> - 2010-08-02 13:06:33
|
You will have to write a custom logger for this functionality. 'EncryptMethod' is treated like any other FIX field. -- Kenny Stone Connamara Systems, LLC On Mon, Aug 2, 2010 at 7:18 AM, Zuber <moh...@in...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Hi, > > I want to encrypt my FIX login Password as its getting displayed in the > Qickfix log files. I have gone through the manual which indicates abt a tag > 'EncryptMethod' (98). If some one could elaborate on the use of this tag, > it > would be very helpful. > > Thanks > Zuber > -- > View this message in context: > http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29324628.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Zuber <moh...@in...> - 2010-08-03 10:06:23
|
Thanks Kenny for you reply, but I am not able to have a clear idea of how to do it, i have made a Logger class which extends quickfix. import quickfix.Log; import quickfix.SLF4JLogFactory; import quickfix.SessionID; import quickfix.SessionSettings; public class LogFactory extends SLF4JLogFactory implements quickfix.LogFactory{ public LogFactory(SessionSettings settings) { super(settings); // TODO Auto-generated constructor stub } @Override public Log create() { // TODO Auto-generated method stub return null; } @Override public Log create(SessionID arg0) { // TODO Auto-generated method stub return null; } } The logs which in am getting are as followes: 11:01:13 [SocketConnectorIoProcessor-0.0]: sessionCreated MINA session created: /<IP ADDRESS> 11:01:13 [QFJ Timer]: ? FIX.4.4:38-><EXCHANGE>: Application exception in toAdmin() 11:01:13 [QFJ Timer]: send FIX.4.4:38-><EXCHANGE>: 8=FIX.4.49=11035=A34=149=3852=20100803-10:01:13.10256=<EXCHANGE>98=0108=30141=Y553=<FIX USER ID>554=<FIX PASSWORD>10=098 11:01:13 [QFJ Timer]: ? FIX.4.4:38-><EXCHANGE>: Initiated logon request 11:01:13 [SocketConnectorIoProcessor-0.0]: exceptionCaught socket exception (/63.247.113.201:443): Initial SSL handshake failed. 11:01:13 [SocketConnectorIoProcessor-0.0]: ? FIX.4.4:38-><EXCHANGE>: Disconnecting I want to get rid of the PASSWORD(marked). Thanks Zuber -- View this message in context: http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29333740.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Draupnir G. - L. <dra...@li...> - 2010-08-03 11:06:53
|
Hi, You have to inherit from Quickfix.Log and in your factory, you return a new instance of your log. Your log class has to implement: QuickFix.Log.Clear QuickFix.Log.onEvent QuickFix.Log.onIncoming QuickFix.Log.onOutgoing And in your onOutgoing method you do something like message.ToString() and take that string and remove the password token. You could also make a loop over each token and add the values to the output if it isn't the password. And then you have to actually do the logging (write to whatever file you want to use). Best regards, Draupnir Guðmundsson Libra On Tue, Aug 3, 2010 at 10:06, Zuber <moh...@in...> wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Thanks Kenny for you reply, but I am not able to have a clear idea of how to > do it, i have made a Logger class which extends quickfix. > > > import quickfix.Log; > import quickfix.SLF4JLogFactory; > import quickfix.SessionID; > import quickfix.SessionSettings; > > public class LogFactory extends SLF4JLogFactory implements > quickfix.LogFactory{ > > public LogFactory(SessionSettings settings) { > super(settings); > // TODO Auto-generated constructor stub > } > > @Override > public Log create() { > // TODO Auto-generated method stub > return null; > } > > @Override > public Log create(SessionID arg0) { > // TODO Auto-generated method stub > return null; > } > > } > > > The logs which in am getting are as followes: > > 11:01:13 [SocketConnectorIoProcessor-0.0]: sessionCreated MINA session > created: /<IP ADDRESS> > 11:01:13 [QFJ Timer]: ? FIX.4.4:38-><EXCHANGE>: Application exception in > toAdmin() > 11:01:13 [QFJ Timer]: send FIX.4.4:38-><EXCHANGE>: > 8=FIX.4.4 9=110 35=A 34=1 49=38 52=20100803-10:01:13.102 56=<EXCHANGE> 98=0 108=30 141=Y 553=<FIX > USER ID> 554=<FIX PASSWORD> 10=098 > 11:01:13 [QFJ Timer]: ? FIX.4.4:38-><EXCHANGE>: Initiated logon request > 11:01:13 [SocketConnectorIoProcessor-0.0]: exceptionCaught socket exception > (/63.247.113.201:443): Initial SSL handshake failed. > 11:01:13 [SocketConnectorIoProcessor-0.0]: ? FIX.4.4:38-><EXCHANGE>: > Disconnecting > > I want to get rid of the PASSWORD(marked). > > Thanks > Zuber > -- > View this message in context: http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29333740.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://p.sf.net/sfu/dev2dev-palm > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Zuber <moh...@in...> - 2010-10-08 11:12:02
|
Draupnir , thanks for you reply. I tried implmenting your idea but now all the logs are getting blocked. If you could provide my with a small code snippet it would be quite a help. Looking fwd to your reply. Thanks Zuber -- View this message in context: http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29914382.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Zuber <moh...@in...> - 2010-10-18 11:49:19
|
hi, Any updates on this?? Zuber -- View this message in context: http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29989587.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Kenny S. <ks...@co...> - 2010-10-18 12:29:56
|
Best example would be to look at the QuickFIX FileLog that is already in the source tree. -- Kenny Stone Connamara Systems, LLC On Mon, Oct 18, 2010 at 6:49 AM, Zuber <moh...@in...> wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > hi, > > Any updates on this?? > > Zuber > -- > View this message in context: > http://old.nabble.com/Need-info-on-Quick-Fix-password-encryption.-tp29324628p29989587.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |