I’m searching for a Gem that will create a private and public key from a given string, that can then be stored in a database. Can anyone recommend such a Gem?
Share
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.
Devise allows this for a token via token_authenticable, I have not found a gem that does this however, so my models usually looks like:
The secret_token generator line ensures that the +/= characters are replaced and then whitespace is removed. “+/=” characters can be difficult to deal with when using RESTful APIs: