RSA implementation using java

后端 未结 4 1279
我在风中等你
我在风中等你 2021-02-06 18:39

I am implementing RSA in java I have encountered a code which is given below it is showing plaintext in numeric form after decrypting the plaintext, but I want it in simple engl

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-06 18:47

    try these lines:

    System.out.println("Plaintext : " +  new String(bplaintext.toByteArray() ) );
    System.out.println("Ciphertext : " +  new String(bciphertext.toByteArray() ) );
    bplaintext = app.decrypt(bciphertext);
            System.out.println("After Decryption Plaintext : " + new String(bplaintext.toByteArray() ) );
    

提交回复
热议问题