Get the sha1-hashed value from XML signature value
问题 I need someone to help me understand XML digital signature method rsa-sha1 . I suppose the signature value = RSA-encrypt(sha1(signedInfo), privatekey). Note Base64.encode(sha1(signedInfo)) contains 28 characters. So I think Base64.encode(RSA-decrypt(signaturevalue), publickey) should return 28 characters as well. However, I actually got a 48-character string. Base64 base64 = new Base64(); byte[] encrypted = base64.decode(signatureValue); try { Cipher cipher = Cipher.getInstance("RSA"); cipher