Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
asteroidg
Posts: 52
Registered: ‎11-21-2009
My Device: Not Specified

How to convert Sign Authority Tool public key into byte array ?

Hi to all.

I want to secure my library by using Sign Authority Tool.

I wanna use something like :

 

CodeSigningKey csk = CodeSigningKey.getPublicKey();
byte[] pubkey = csk.getPublicKey();
return Arrays.equals(pubkey, Sign_Authority_Tool_Public_Key);

 

 

inside the app to check if the lib wasn't sign by using different sign authority tool key.

 

My problem is how I can convert the folowing sign authority public key:

AA3EFBB7 80B39511 1E65D3FA 8AB86A60 412C4659 8312749B BD38B418 E09B9B3F D1A49AF6 AF997287 82C43A5C 8226C067 ...

to byte array ?

 

Thank you in advance.

 

 

 

 

Please use plain text.