Quantcast
Channel: thalessim Discussions Rss Feed
Viewing all 279 articles
Browse latest View live

New Post: Thales HSM and using the TCP/IP

$
0
0
hi,
thanks for your reply
i connect to P3CM by Hyperterminal via Serial Port but i don't know how i can connect to P3CM via ethernet ,i don't know any consol.do you have the console and sample code?
i have only,an Installation and operation guide for it and there is some Example for sending command to P3CM via serial and thernet,
for example the command format in ethernet is:
X'00 X'06 X'31 X'32 X'33 X'34 X'4E X'43 (for NC command)
but as i told i don't know how i send them and how get response?

New Post: Thales HSM and using the TCP/IP

$
0
0
Hi!

If you need to send command to host port, first, you should configure it using CH console command.
Below is an example of HSM client on Java, usage -- java HsmClient -i <ip> -p <port>:
import java.io.*;
import java.net.*;

public class HsmClient {    

    private static Socket socket = null;
        private static int header = 0;
    private static String HSM_IP;
    private static long HSM_PORT;
    private static int HEADER_LENGTH = 4;
            
        private static void connect () throws IOException {
            socket = new Socket(HSM_IP, HSM_PORT);
    }   
    
        private static void disconnect () throws IOException {
            socket.close();
    }

        private static String setHeader () {
            header++;
            String headerStr = Integer.toString(header);
            while (headerStr.length() != HEADER_LENGTH) {
                headerString = ‘0’ + headerString;
            }
        return rs;
        }

        private static String sendCommand (String command) throws IOException {
        String response = null;
            command = setHeader() + command;
            DataOutputStream out = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream()));
            DataInputStream in = new DataInputStream(new BufferedInputStream(socket.getInputStream()));
            out.writeUTF(command);
            out.flush();
        response = in.readUTF();
        return response;
        }

        private static String sendEcho () throws IOException {
            String to_hsm = "NC";   
            return sendCommand(to_hsm);
    }

    public static void main (String[] args) {
        for (int i = 0; i < args.length; i++) {
            if (args[i].equals(„-i”)) {
                HSM_IP = args[i + 1];
            }
            else if (args[i].equals(„-p”)) {
                HSM_PORT = args[i + 1];
            }
            try {
                connect();
                sendEcho();
                System.out.println(sendEcho());
                disconnect();
            }
            catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}

New Post: Excel VBA and ThalesCore.dl

$
0
0
Hi!

It is no meter what way you are connecting to 9998.

New Post: Decrypt PIN Block using ZPK

$
0
0
Dear All,

I need to generate a PIN Block (Pin under ZPK) with thales HSM 800 using mod line :
  • I have Clear PIN.
  • I have a ZPK under LMK.
I need only the command to use , because we are working on terminal simulator.

Best regards.
Youness

New Post: Generate a PIN Block (Pin under ZPK) using Thales command

$
0
0
Dear All,

I need to generate a PIN Block (Pin under ZPK) with thales HSM 800 using mod line :
  • I have Clear PIN.
  • I have a ZPK under LMK.
I need only the command to use , because we are working on terminal simulator.

Best regards.
Youness

New Post: Formatin Option in HSM

$
0
0
Hi All,

I am trying to format the PIN on payShield 9000 HSM, currently I want to control the "Bold Text".
Current configuration is that PIN is printed Bold by default , and I want to print it in normal.

Can anyone kindly tell me the binary code I have to send to printer.

Current command send to printer is something like this:

PA>L>L>L>L>L>L>L>L>L>070^0>L>070^1>L>040^P>070^2>L>070^3>L>L>070^4>080^5>L>L>070^6>080^7>F

Thanks and Best Regards
Artan

New Post: Create CVK key

$
0
0
Good afternoon!

Is it possible to create a CVK key, using the PAN; Valid Date; Service Code?

Give me a hint how to do.

New Post: Decrypt PIN Block using ZPK

$
0
0
Hi!

You can do that using 2 host commands:

1) Encrypt PIN under LMK using 'BA' command;
2) translate PIN under LMK to ZPK encryption using 'JG' command.

Regards,
Juris

New Post: Formatin Option in HSM

$
0
0
Hi!

Such command are formed as follows, lets assume we need to add <ESC C> Epson code to the command:

|11BC

parsed example:

1) | - start of binary data;
2) 1 - length
3) 1B - ESC
4) C - command code

About the stroke weight you can check any "ESC/P" (Epson standart code for printers) manual.

Regards,
Juris

New Post: Create CVK key

$
0
0
Hi!

CVK is card verification key. PAN, expiry and SVC are used to generate CVV value. Do you need to generate it on Thales HSM?

Regard,
Juris

New Post: Generate a PIN Block (Pin under ZPK) using Thales command

$
0
0
Hi!

You can do that using 2 host commands:

1) Encrypt PIN under LMK using 'BA' command;
2) translate PIN under LMK to ZPK encryption using 'JG' command.

Regards,
Juris

New Post: Create CVK key

$
0
0
Hello! What do you recommend to generate the CVV? 100% accurate?

What price?

I await contact.

New Post: Create CVK key

$
0
0
Hello!

I just want to precise, what way you want to generate CVV :) to give you the answer you need.

If you need to use Thales HSM, use CV command from console interface, other ways, you can use any freeware DES calculator.

Regards,
Juris

New Post: Formatin Option in HSM

$
0
0
Hi Juris,

thank you for your answer,

the exact command we send to printer is:

'PA>L>L>L>L>L>L>L>L>L>070^0>L>070^1>L>040^P>070^2>L>070^3>L>L>070^4>080^5>L>L>070^6>080^7>F' ,

we are trying to print the PIN more lighter , from the epson ESC /P manual the command to do that is: ESC (s#B

Where # is stroke weight number , the more lighter option is '-7'.

We tried many combination, like your suggestion we tried:

'PA>L>L>L>L>L>L>L>L>L>070^0>L>070^1>L>|11B(s-7B040^P>070^2>L>070^3>L>L>070^4>080^5>L>L>070^6>080^7>F'
or
'PA>L>L>L>L>L>L>L>L>L>070^0>L>070^1>|L>11B(s-7B040^P>070^2>L>070^3>L>L>070^4>080^5>L>L>070^6>080^7>F'

but with no success, the above combinations were wrong and the printer does not understand it.

Can you kindly give us any hint on above command.


Thanks and best regards
Artan Telkiu

New Post: Formatin Option in HSM

$
0
0
Hi,

What model of printer are you using with HSM?

Does HSM returns the error or the print format did not change?

Also, i can not find such ESC code (ESC ( s) in my manuals. Could you please send me that manual?

Regards,
Juris

New Post: Create CVK key

$
0
0
Hello!
I need a brute force, to find the key.

Selmo...

New Post: Create CVK key

$
0
0
Hello!

It is unreal. The keys for CVV are used double length i.e. 3DES keyes. You will spend may be 10 years or more to brute force it. :)

Regards,
Juris

New Post: Create CVK key

$
0
0
Even knowing the outcome?
I have the CVV, I want a valid key for him.

Selmo...

New Post: Create CVK key

$
0
0
Yes, also, if you know the outcome. Sorry :( Thats why 3DES algorithm is pritty old, known, but still allowed crypto algorithm by PIN Security Standard.

Regards,
Juris

New Post: Formatin Option in HSM

$
0
0
Hi Juris,

we are using "RICOH AFICIO aficio mp 3010', after some long testing we could not finalize our solution.

we are sending the following hex value to the HSM for Stroke Weight:

50417C0C1B28732D3742

the HSM is not returing error but is not changing the "Stroke Weight" during printing.

We Appreciate your helps
Best Regards
Artan Telkiu
Viewing all 279 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>