-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SHA1/256 functions is only possible to use for String, it's impossible for byte[] in painless #108718
Comments
Thank you very much for your interest in Elasticsearch. This appears to be a user question, and we'd like to direct these to the Elasticsearch forum. If you can stop by there, we'd appreciate it. This allows us to use GitHub for verified bug reports, feature requests, and pull requests. There's an active community in the forum that should be able to help get an answer to your question. As such, I hope you don't mind that I close this. |
@slobodanadamovic The feature requests also must be done on forum? Right now there is no way to calculate a hash for bytes, only for String. |
@ser-sergeev Apologies, I've interpreted this as a question. This is a correct place to raise an enhancement requests.
|
@slobodanadamovic Pardon me, I thought, because of UTF-8 encoding, I wouldn't be able to convert from bytes to String. Anyway, big thank you for your answer and patience. |
@slobodanadamovic No, sha256(bytes) and sha256('bytes->String') isn't equal. I compared the result of the code above and the result of sha265 with the same bytes. |
@ser-sergeev I see now that there can be potential issues with wrong encoding. Let me tag the responsible team for painless to get their input on this. |
Description
No response
The text was updated successfully, but these errors were encountered: