I had generate a 256 bits random keys into a file.
The plan is to using the 256 bits random key as a source to generate a RSA (public and private) key.
Anyone kind soul know how I can do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you can generate keys using KeyPairGenerator, which can be initialized with SecureRandom.
SecureRandomhas constructor which takes array of bytes as seed.