我可以使用 Java 代码或其他工具检查对称加密在 Hazelcast 中的工作原理吗?如果可能的话,我希望看到来自 Hazelcast 的加密值。
配置:
SymmetricEncryptionConfig symmetricEncryptionConfig = new SymmetricEncryptionConfig();
symmetricEncryptionConfig.setEnabled(true);
symmetricEncryptionConfig.setAlgorithm("Blowfish");
symmetricEncryptionConfig.setSalt("asdfdsasdfsadfsadf");
symmetricEncryptionConfig.setPassword("passwasdsadasdord");
symmetricEncryptionConfig.setIterationCount(28);
Config config = new Config();
config.getNetworkConfig().setSymmetricEncryptionConfig(symmetricEncryptionConfig);
ListConfig listConfig = new ListConfig();
listConfig.setName("ISP");
listConfig.setMaxSize(20);
config.getListConfigs().put("ISP", listConfig);
config.getManagementCenterConfig().setEnabled(true);
config.getManagementCenterConfig().setUrl("http://localhost:8080/mancenter");
HazelcastInstance server = Hazelcast.newHazelcastInstance(config);
最佳答案
您的配置似乎有效。
要亲自尝试,您可以申请 Hazelcast Enterprise 试用许可证,有效期为 30 天 - https://hazelcast.com/hazelcast-enterprise-download/
对称加密在 Hazelcast 数据包级别内部工作。流程类似于PacketEncoder 。区别在于字节输出是由选定的密码加密的。
附加说明
- 对称加密仅用于成员(member)之间的通信!客户端到成员(member)未加密;
- 对称加密不能与 TLS 一起使用;
- 在 Hazelcast 中,优先使用 TLS,而不是对称加密。
关于java - Hazelcast对称加密用java检查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53445971/