use JDK sha-1 encoding