Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Generate a 3DES key using keytool

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Introduction to keytool

Keytool generates 3DES key

C:\ Program Files\ Java\ jre1.8.0_161\ bin > keytool-genseckey-alias test-TDES-keyalg DESede-keysize 168-storetype jceks-keystore key-TDES.store enter the KeyStore password: enter the new password again: enter the key password (if it is the same as the KeyStore password, press enter): the Warning:JCEKS KeyStore uses a special format. It is recommended that you use "keytool-importkeystore-srckeystore key-TDES.store-destkeystore key-TDES.store-deststoretype pkcs12" to migrate to the industry standard format PKCS12.

View the KeyStore:

C:\ Program Files\ Java\ jre1.8.0_161\ bin > keytool-list-v-storetype jceks-keystore key-TDES.store enter KeyStore password: KeyStore type: JCEKS KeyStore provider: SunJCE your KeyStore contains 1 entry alias: test-tdes creation date: 2018-5-22 entry type: SecretKeyEntry** * * Warning:JCEKS KeyStore uses a dedicated format. It is recommended that you use "keytool-importkeystore-srckeystore key-TDES.store-destkeystore key-TDES.store-deststoretype pkcs12" to migrate to the industry standard format PKCS12. Note:-keyalg:DESede corresponds to a 168bit (valid) length key, not 192 position des corresponds to a 56bit (valid) length key, not 64. -keysize: 168-storetype: jceks keytool supports three key storage formats: jks, jceks and pksc12, as long as jceks supports storing symmetric keys.

TripleDES is used when jceks protects Keystore private key.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report