简体   繁体   English

Google App Engine-服务器上的哈希密码

[英]Google App Engine - hash password on server

I have recently started to learn about google app engine. 我最近开始学习Google App Engine。 I have encountered a problem. 我遇到了一个问题。 How do hash a password on google app engine? 如何在Google App Engine上哈希密码? Im planning to pass password to the datastore. 我打算将密码传递到数据存储。 There I will hash the password and store the hash? 在那里,我将哈希密码并存储哈希? Any tips or thoughts? 有任何提示或想法吗?

thx all! 全部!

Since you are looking at implementing your own custom login, you can definitely use popular hashing algorithms for the same. 由于您正在考虑实现自己的自定义登录,因此可以肯定地使用流行的哈希算法。 You can use the MessageDigest classes for teh same. 您可以使用MessageDigest类相同。 Alternately, 3rd party libraries also exist, which you could use. 另外,也可以使用第三方库。 Eg Jasypt library 例如Jasypt库

If you're not sure what you're doing, you're best of relying on a library. 如果不确定自己在做什么,则最好依靠库。 Having said that, there are great code samples for password management on the owasp site. 话虽如此,但是在owasp网站上有许多用于密码管理的代码示例。

For example, here is a page with code samples on how to manage this correctly and a good explanation of all the element requires. 例如, 这是一个页面,其中包含有关如何正确管理此代码示例的代码示例,并很好地解释了所有元素要求。 You'll need to adapt the code for storage on appengine, or just use CloudSQL 您需要调整代码以存储在Appengine上,或仅使用CloudSQL

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

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