Hazelcast symmetric encryption check with java
Can I check how symmetric encryption works in Hazelcast with Java code or with something another tool? I want to see encrypted values comed from Hazelcast if it's possible.
Config:
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);
java hazelcast
add a comment |
Can I check how symmetric encryption works in Hazelcast with Java code or with something another tool? I want to see encrypted values comed from Hazelcast if it's possible.
Config:
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);
java hazelcast
Probably - you need the cyphertext, the encryption key and the algorithm and mode that was used to encrypt the plaintext. Then update your question with the alogorithm details.
– David Soroko
Nov 23 '18 at 11:41
Symmetric encryption is a Hazelcast Enterprise feature, you cannot use it with Hazelcast Open Source IMDG. Are you using Hazelcast Enterprise?
– Alparslan Avci
Nov 23 '18 at 11:47
@AlparslanAvci Unfortunately no. I have task with adding symmetric encryption to hazelcast. In documentation I found only configs with XML and no example for testing how it works. In production using enterprise version of it. Will it work on prod, if I only set params to XML?
– Evgeny Olensky
Nov 23 '18 at 12:19
Yes, it you use Enterprise and set the parameters to XML, it will work. Please find an example of it here: github.com/hazelcast/hazelcast-code-samples/tree/master/…
– Alparslan Avci
Nov 23 '18 at 12:26
add a comment |
Can I check how symmetric encryption works in Hazelcast with Java code or with something another tool? I want to see encrypted values comed from Hazelcast if it's possible.
Config:
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);
java hazelcast
Can I check how symmetric encryption works in Hazelcast with Java code or with something another tool? I want to see encrypted values comed from Hazelcast if it's possible.
Config:
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);
java hazelcast
java hazelcast
edited Nov 23 '18 at 11:47
Evgeny Olensky
asked Nov 23 '18 at 11:36
Evgeny OlenskyEvgeny Olensky
62
62
Probably - you need the cyphertext, the encryption key and the algorithm and mode that was used to encrypt the plaintext. Then update your question with the alogorithm details.
– David Soroko
Nov 23 '18 at 11:41
Symmetric encryption is a Hazelcast Enterprise feature, you cannot use it with Hazelcast Open Source IMDG. Are you using Hazelcast Enterprise?
– Alparslan Avci
Nov 23 '18 at 11:47
@AlparslanAvci Unfortunately no. I have task with adding symmetric encryption to hazelcast. In documentation I found only configs with XML and no example for testing how it works. In production using enterprise version of it. Will it work on prod, if I only set params to XML?
– Evgeny Olensky
Nov 23 '18 at 12:19
Yes, it you use Enterprise and set the parameters to XML, it will work. Please find an example of it here: github.com/hazelcast/hazelcast-code-samples/tree/master/…
– Alparslan Avci
Nov 23 '18 at 12:26
add a comment |
Probably - you need the cyphertext, the encryption key and the algorithm and mode that was used to encrypt the plaintext. Then update your question with the alogorithm details.
– David Soroko
Nov 23 '18 at 11:41
Symmetric encryption is a Hazelcast Enterprise feature, you cannot use it with Hazelcast Open Source IMDG. Are you using Hazelcast Enterprise?
– Alparslan Avci
Nov 23 '18 at 11:47
@AlparslanAvci Unfortunately no. I have task with adding symmetric encryption to hazelcast. In documentation I found only configs with XML and no example for testing how it works. In production using enterprise version of it. Will it work on prod, if I only set params to XML?
– Evgeny Olensky
Nov 23 '18 at 12:19
Yes, it you use Enterprise and set the parameters to XML, it will work. Please find an example of it here: github.com/hazelcast/hazelcast-code-samples/tree/master/…
– Alparslan Avci
Nov 23 '18 at 12:26
Probably - you need the cyphertext, the encryption key and the algorithm and mode that was used to encrypt the plaintext. Then update your question with the alogorithm details.
– David Soroko
Nov 23 '18 at 11:41
Probably - you need the cyphertext, the encryption key and the algorithm and mode that was used to encrypt the plaintext. Then update your question with the alogorithm details.
– David Soroko
Nov 23 '18 at 11:41
Symmetric encryption is a Hazelcast Enterprise feature, you cannot use it with Hazelcast Open Source IMDG. Are you using Hazelcast Enterprise?
– Alparslan Avci
Nov 23 '18 at 11:47
Symmetric encryption is a Hazelcast Enterprise feature, you cannot use it with Hazelcast Open Source IMDG. Are you using Hazelcast Enterprise?
– Alparslan Avci
Nov 23 '18 at 11:47
@AlparslanAvci Unfortunately no. I have task with adding symmetric encryption to hazelcast. In documentation I found only configs with XML and no example for testing how it works. In production using enterprise version of it. Will it work on prod, if I only set params to XML?
– Evgeny Olensky
Nov 23 '18 at 12:19
@AlparslanAvci Unfortunately no. I have task with adding symmetric encryption to hazelcast. In documentation I found only configs with XML and no example for testing how it works. In production using enterprise version of it. Will it work on prod, if I only set params to XML?
– Evgeny Olensky
Nov 23 '18 at 12:19
Yes, it you use Enterprise and set the parameters to XML, it will work. Please find an example of it here: github.com/hazelcast/hazelcast-code-samples/tree/master/…
– Alparslan Avci
Nov 23 '18 at 12:26
Yes, it you use Enterprise and set the parameters to XML, it will work. Please find an example of it here: github.com/hazelcast/hazelcast-code-samples/tree/master/…
– Alparslan Avci
Nov 23 '18 at 12:26
add a comment |
1 Answer
1
active
oldest
votes
Your configuration seems valid.
To try it yourself you can ask for a Hazelcast Enterprise trial license which is valid for 30 days - https://hazelcast.com/hazelcast-enterprise-download/
The symmetric encryption internally works on Hazelcast packets level. The flow is similar to the PacketEncoder. What makes the difference is the byte output is encrypted by a chosen cipher.
Additional notes
- Symmetric encryption is only used in member-to-member communication! The client-to-member is not encrypted;
- Symmetric encryption can't be used together with TLS;
- Using TLS is preferred over the Symmetric encryption in Hazelcast.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445971%2fhazelcast-symmetric-encryption-check-with-java%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your configuration seems valid.
To try it yourself you can ask for a Hazelcast Enterprise trial license which is valid for 30 days - https://hazelcast.com/hazelcast-enterprise-download/
The symmetric encryption internally works on Hazelcast packets level. The flow is similar to the PacketEncoder. What makes the difference is the byte output is encrypted by a chosen cipher.
Additional notes
- Symmetric encryption is only used in member-to-member communication! The client-to-member is not encrypted;
- Symmetric encryption can't be used together with TLS;
- Using TLS is preferred over the Symmetric encryption in Hazelcast.
add a comment |
Your configuration seems valid.
To try it yourself you can ask for a Hazelcast Enterprise trial license which is valid for 30 days - https://hazelcast.com/hazelcast-enterprise-download/
The symmetric encryption internally works on Hazelcast packets level. The flow is similar to the PacketEncoder. What makes the difference is the byte output is encrypted by a chosen cipher.
Additional notes
- Symmetric encryption is only used in member-to-member communication! The client-to-member is not encrypted;
- Symmetric encryption can't be used together with TLS;
- Using TLS is preferred over the Symmetric encryption in Hazelcast.
add a comment |
Your configuration seems valid.
To try it yourself you can ask for a Hazelcast Enterprise trial license which is valid for 30 days - https://hazelcast.com/hazelcast-enterprise-download/
The symmetric encryption internally works on Hazelcast packets level. The flow is similar to the PacketEncoder. What makes the difference is the byte output is encrypted by a chosen cipher.
Additional notes
- Symmetric encryption is only used in member-to-member communication! The client-to-member is not encrypted;
- Symmetric encryption can't be used together with TLS;
- Using TLS is preferred over the Symmetric encryption in Hazelcast.
Your configuration seems valid.
To try it yourself you can ask for a Hazelcast Enterprise trial license which is valid for 30 days - https://hazelcast.com/hazelcast-enterprise-download/
The symmetric encryption internally works on Hazelcast packets level. The flow is similar to the PacketEncoder. What makes the difference is the byte output is encrypted by a chosen cipher.
Additional notes
- Symmetric encryption is only used in member-to-member communication! The client-to-member is not encrypted;
- Symmetric encryption can't be used together with TLS;
- Using TLS is preferred over the Symmetric encryption in Hazelcast.
answered Nov 26 '18 at 12:48
kwartkwart
2,23111213
2,23111213
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445971%2fhazelcast-symmetric-encryption-check-with-java%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Probably - you need the cyphertext, the encryption key and the algorithm and mode that was used to encrypt the plaintext. Then update your question with the alogorithm details.
– David Soroko
Nov 23 '18 at 11:41
Symmetric encryption is a Hazelcast Enterprise feature, you cannot use it with Hazelcast Open Source IMDG. Are you using Hazelcast Enterprise?
– Alparslan Avci
Nov 23 '18 at 11:47
@AlparslanAvci Unfortunately no. I have task with adding symmetric encryption to hazelcast. In documentation I found only configs with XML and no example for testing how it works. In production using enterprise version of it. Will it work on prod, if I only set params to XML?
– Evgeny Olensky
Nov 23 '18 at 12:19
Yes, it you use Enterprise and set the parameters to XML, it will work. Please find an example of it here: github.com/hazelcast/hazelcast-code-samples/tree/master/…
– Alparslan Avci
Nov 23 '18 at 12:26