Problem 44959. RSA encryption using public key
Solution Stats
Problem Comments
-
3 Comments
William
on 3 Sep 2019
Sorry, but I don't understand your instruction to "convert the uint8 array to a long integer string". Could you be more specific?
David Hill
on 3 Sep 2019
Convert byte array into an integer/biginteger
Rafael S.T. Vieira
on 23 Oct 2020
A better answer to William (and for people that don't use Java) would be that after converting numbers to uint8, we must transform a vector into a single number using base 256. That means that a word like 'ball' becomes [98, 97, 108, 108] and then 98*256^3 + 97*256^2 + 108*256 + 108 = 1650551916.
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
88160 Solvers
-
2023 Solvers
-
Recurring Cycle Length (Inspired by Project Euler Problem 26)
110 Solvers
-
Make a random, non-repeating vector.
7429 Solvers
-
248 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!