public static boolean checkSha ( String value , String signature ) { Check . notNull ( signature ) ; return Arrays . equals ( getSha ( value ) . getBytes ( StandardCharsets . UTF_8 ) , signature . getBytes ( StandardCharsets . UTF_8 ) ) ; }
Compare a checksum with its supposed original value .