Then I have other method for decryption in which I take the cipher string, convert it back to cipher biginteger, perform the decryption and convert it back again to string to present it to the user. Then to present the encrypted message to the user, I convert the cipher biginteger into String. The user inserts the message in plaintext in the form of String I have to convert the message to BigInteger and apply the encryption method. BigInteger class is used, which converts the resultant byte array into its sign-magnitude representation. I found some good tutorials explaining how to perform the operations of the algorithm with BigIntegers, since it envolves modular arithmetic operations. So I have a school work in which I have to implement an asymmetric cryptography algorithm and I chose RSA. at 15:39 Yes I tried to do it repeatedly and the encryption result change every time, but I want to know if the two work the same.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |