Verify SHA1withRSA signature generated in Java (Android) with phpseclib
问题 This is what I want to do: Generate a 512 bit RSA keypair in Java/Android Generate a SHA1withRSA signature for some message in Java Send message, signature and public key to PHP (for testing this will be done at the same time) Verify the message in PHP using phpseclib What I got so far: On the Java side: String msg = "Test message"; // generate keypair KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); keyGen.initialize(512); KeyPair keyPair = keyGen.generateKeyPair(); // generate