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.

Use GPG to keep your Rails secrets secure

19 pointsby loopjabout 11 years ago

2 comments

druiidabout 11 years ago
I prefer using Symmetric Encryption: <a href="https://github.com/reidmorrison/symmetric-encryption" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;reidmorrison&#x2F;symmetric-encryption</a><p>It&#x27;s super simple to setup and maintain. The only pain-point is how to distribute the private key to new-users. Haven&#x27;t quite found a super easy way to do that yet. Generally we just airdrop it to the person.
评论 #7736188 未加载
joevandykabout 11 years ago
I prefer storing secrets&#x2F;api tokens in a database.<p>Runs the risk of leaking secrets via a sql injection exploit though, but if that happens, you&#x27;re already screwed.<p>For development, we consider all keys&#x2F;tokens available to developers as public -- i.e. for authorize.net accounts, those tokens are tied to test accounts.