T
T
ttt12017-09-30 00:25:18
Java
ttt1, 2017-09-30 00:25:18

How to find sha1 hash working like in php?

It is necessary to write in java an analogue of the function base64_encode(sha1("test", TRUE));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Myvrenik, 2017-09-30
@gim0

DigestUtils from Apache Commons Codec . For Base64 encoding, see built-in class (works since Java 8).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question