0

I have signed application with keystore with JKS extension. I am using KeyStore.getInstance("JKS") but it is giving exception java.security.NoSuchAlgorithmException: KeyStore jks implementation not found the purpose of loading this is that I am storing my key information in this keystore like hash etc and will use this hash to encrypt things I have store keys using keytool from command line but how to retrieve?

EDIT

I want to do it programmatically not from command line. I want to retrieve alias and keystore in code not command line

Mustansar Saeed
  • 2,730
  • 2
  • 22
  • 46
  • Does you only need the keystore alias or you should need to use withing the app for any other purpose? – Shubham Sejpal Apr 04 '18 at 06:43
  • @ShubhamSejpal: I want to use that in the app also. I will use the alias to get the hash and then decrypt my in app items which i have encrypted using the hash stored in the keystore – Mustansar Saeed Apr 04 '18 at 06:45
  • https://stackoverflow.com/a/12894711/1515052 – Simulant Apr 04 '18 at 12:46
  • @Simulant: the link you have mentioned is expecting the keystore to be in assets or storage location but i want read keystore(used to sign apk) sha, certificate etc. – Mustansar Saeed Apr 04 '18 at 13:08

0 Answers0