TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Lockbox: secure secrets for your rails model using public key crypto.

2 pointsby jamesotronover 15 years ago

1 comment

sweisover 15 years ago
What padding mode is this using? Looking at the code, I think it's using raw RSA to encrypt the data directly. That may be vulnerable to several attacks.<p>I may not understand your application correctly, but it's unclear why you're even using public key crypto. It appears that you must type a passphrase to access both a public and private key that live on the same server. Why not just use a symmetric key?<p>Cautionary advice about rolling your own crypto: <a href="http://www.youtube.com/watch?v=ySQl0NhW1J0" rel="nofollow">http://www.youtube.com/watch?v=ySQl0NhW1J0</a>