SHA-256 and SHA-1 implementations in painless for elasticsearch.
You can use this code in a Kibana scripted field.
- SHA-256 original code from https://github.com/johanstenberg92/SHA-256
- SHA-1 original code from https://github.com/opendatakit/javarosa/blob/master/src/org/javarosa/core/util/SHA1.java