Closed rupamking1 closed 4 years ago
Hey @rupamking1
I tried using JSEncrypt with the result from the crypton rsa_crypto_example.dart and it worked.
http://travistidwell.com/jsencrypt/demo/index.html
Private Key:
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCKdU5q0KfSY+eJyh53NLKaYUIit+fDYhfdLDfmAfpFRPgxsYNVQHN2YcbcsjWTQNDVG/4F2me8r2VgZNGeMtPm5eGPBEAaYfNU6v8ArTa9hobB/iq4uzpByb4h4UITXtQj4+bDjzu9ihf/Qr3m4W0ofCHQW5GYtTU+xiCb+Ejf+Nco9Av8j8mwYVmyQ5CXFG1OyiinETpD+LZ4UGIXthYJdp61xc7SAVOVAAc8ieuv+lWvTgMhXYdrQgqYQNZ3joACeXwleof3JmwNJJQArJ2IhPGdNT3cowvwUuavBUMBj6BJc43F964iDumKXuaV7WnBovYFdKdgmi88vagXFiFdAgMBAAECggEATGRiqr6LCaLDehvBaWXy8QieU8eCISP7JLWj9cy7iAKAqfJWEvBnhDZ4YQYWVzOYxSwXoKUbPVjMpz2ZBh7nGWtWYvEmaSgH+J9bqMTpAfK6YUhZy+jJQMkNlWXSbhuREmhIxzc879vEV7s8Samw73hls68CCu5X/VWVYli/5Ip1e2h0hyBA82ZnamcQMn3DL6veU2bVzTvUc+4Py6f2i349YwlkrHfYMCZZ6BZtBdesmHMovEKXJ7SHQ+7oDNSorAh+n1KD8ouwvnFp5SK80pQn313sCKEwXmp4dEBZHeX0/vWan80NNVQFl5zVT0SQdzJ6ffgeS44wRb6y5XLgwQKBgQDe5viFBVkPicYlyj1/dd0rC10w60I+oazpQqw5IV396Qh7UyfqPVXGNY1dNEyKF66BADT58RDoRcXCFWguE1n6ky+QhgrJbCDnrujuDxKrENXioWpUsmVFSZH91+bQBTU57mqMrboUBn6D4XxG6SkixmjDnvz8aobjhka2A+6TcQKBgQCfBGx6vePM6GLXaNopGvGCsaa9PsGSgUHQbOyRR1bW9ekETYGYyPGqlZVpYg8y2hWRWpLD8BGUdfp7THNfqX2U5jb6KLTiVprfESdVcSsl3WvafWs88aaLIkp1JoyRAKZqtdZEGG8gGusMR3+/SSA7bcIhzUw+ymdKzpfKoclerQKBgF23OlGjF/jCcj69MvH9+gj49Ct3Hhj7HJnN4F78umngqiI/qg5/zypQpajELlH49vNhxOQ5CGS/wQ+CtJR6qmABtgPLd4mMHqGKFoDQcYbewy5Ps0b84jspXWoedfqL1f8PUFjpSczVlieYjAm8SgFG7hEhLThrCV9ruxsXuBzhAoGAYpubqYGXgbmZkXqzzkmm+iSwASqpXvBIn7br/CsA7swPc1ucweHZ+q5HuNHWGvKh7UD9QgPc4vNGIK+H3Ap+lZctAHO9t5187Fb2zUUgPJrSBus/VMuFO0JIad09za1ZhVK9S/za7E3E9BhiX3w5QKEPgWaNoWJiK0FxX3Z0KQECgYB2AFFXW0EC7+CTkTKz3ZxZgKzy4I09j2XWPIANx5X9+1p/bzNlVuGNe2PGdPBrhMQjrqfxGmo+rbvbsGXAQ9jQx1e+BBX3q7OY3gCzUuadCvJIZ3qCYsrVxlz6z62hgU3xigwZAuY/93sQlJmzAquolRJH8UKjrf8a9RYQDOrSSw==
Encrypted:
VsOgPO4JnxU0w1K/Ks/UrA2C6IwPV6sb6XEALZqS+jJqA9N6cfc4ABYEo9mS7TXdv589mijU7gWDGn5x6jYItiMy5GJT87TRxhj2Q3eQGczjp0X0liS7cHeu7eKxMP4BgEllLuOP/8QMfAAKFQauvg6MVcWW1uozkuTJm7h2oyG5c383EAQynLgueZzpy7NEMNka+1YbzxvOByLxnwh+quAsMfWaew5Tt6VHwxuPOhOgj9mtDAdGDyf58Q+Y/che6UeoeEi6KoXh73AhmX3J7fPI2r03aM7YEl4kFOH0by3I5c38OnRryzqVooyFG2TfNDkRBihqoG4KZtybVohUXg==
This should resolve: 174532cf7d2
Please give me some time. Just tell me one thing how can I use my custom public key and private key.
How can I Encrypt with RSA in flutter and Decrypt in NodeJs ? Which NodeJs package is compatible with your Crypton package ?