简体   繁体   English

使用Ruby on Rails保护数据安全吗?

[英]Secure Data with Ruby on Rails?

I am making a website and wish to store the data of users that log in into a SECURE database.; 我正在建立一个网站,并希望将登录SECURE数据库的用户的数据存储起来。 their username, URL, profile picture and points. 他们的用户名,URL,个人资料图片和积分。

I am currently working on and studying game development so don't plan on spending too much time learning complex new coding languages. 我目前正在研究游戏开发,所以不要计划花太多时间学习复杂的新编码语言。 It was recently suggested to me that I learn Ruby on Rails, rather than mySQL and object oriented PHP. 最近有人建议我学习Ruby on Rails,而不是mySQL和面向对象的PHP。 I currently have half a website built with HTML that uses some PHP (not coded by me). 我目前有一半的网站使用HTML构建,并使用了一些PHP(我未编码)。

Using Rails, can I set up a secure database to store information that can be accessed and changed by the website but untouchable to users? 使用Rails,我可以建立一个安全的数据库来存储网站可以访问和更改但用户无法访问的信息吗?

I'm relatively new to RoR as well but I'll do my best to answer completely: 我也是RoR的新手,但我会尽全力回答:

  1. Rails did have a bit of a learning curve for me, it doesn't help that the language changes so often so that tutorials are out of date quickly. Rails确实对我来说有点学习曲线,语言的变化如此频繁以至于教程很快就过时了也无济于事。 It is very rewarding, however, and will let you quickly create awesome web-apps. 但是,这是非常有益的,它可以让您快速创建很棒的Web应用程序。

  2. Rails has many Gems that you can use for many different things. Rails有许多宝石,可用于许多不同的事物。 For user authentication/encryption, you can use Devise , I've never needed database encryption on its own but I'm sure there are gems for that as well. 对于用户身份验证/加密,您可以使用Devise ,我从来不需要自己进行数据库加密,但是我敢肯定还有一些绝妙的方法。

  3. Rails readily accepts your html if you split it up correctly. 如果正确分割,Rails会轻易接受您的html。 I recommend you use Rails without php to make your own life easier but Here is a guide to run both if you really need to. 我建议你使用Rails的PHP不使自己的生活更方便,但这里是同时运行,如果你真的需要一个指南。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM