ninja-dart / ninja

Encryption and Decryption cryptographic algorithms exposed as Dart's Converter and Codec interfaces.
BSD 3-Clause "New" or "Revised" License
19 stars 6 forks source link

rsa result is different to python #2

Open sidealice opened 6 years ago

sidealice commented 6 years ago

modulus 165138424261149263963666229661164814908887524950166142962960019363944425161240370251403452452001165143400173133423045791330687304650944332950460079059702342999940532642226896299225258939028313437520982527474148958262129523279095471616009516621824844891755906467794220597075349492626446841979774101805104112707 publicExponent 65537 String message = servertime.toString() + "\t" + nonce.toString() + "\n" + password.toString(); //

rsa in dart is b28e6550000bb52f787a3372021c6db670e2341bc15c2e77ebe62dfeb1f01a52446880bf624ba5613e2a7cf95dca20d5ca00ced959d5b99b9f2ae0436838310e102920326aca61ad4887a9e1ce74b5fdc1c346d16e685a8d220db75679eb54f101ee838dfea2f8743497f86c7c8c7ff1db95b60eca8027c9a2c62d90f1adea67

but rsa in python is 664a6ee5865ec57746b5d547b84c7ca35b45053e36f9bf41ba062815c14bfe7143f747dd9318c1157b55203de6fe3a0dc5a2e6568ca8dcab918422b22f77c88c5ceb826587563f195a6954605c1f5b8e98fce4708250b5a4db9c47177bd76c95e18c9eace59d25026c6fea72d08fda2a825411e5470158dde93963d6b907ac4b

what's the different?

tejainece commented 4 years ago

Can you present the code that you use.