我需要在WP(SDK 7.1)下用BCrypt生成盐怎么做? [英] I need to generate salt with BCrypt under WP (SDK 7.1) How to do it ?
问题描述
BCrypt.Net.BCrypt.GenerateSalt()在WP7.1中使用时引发异常
任何替代方案Windows Phone?
感谢您的回答:)
Steve
您的意思是想要生成Salt吗? 你真的不应该在电话上这样做,因为它是可以被发现的吗? salt值应该是一个秘密(可能由Web服务提供)。请参阅Rob的优秀文章:
http://robtiffany.com/tag/rfc2898derivebytes/
如果您绝对需要在手机上生成盐,您只需使用随机生成器创建8个字节(然后将其存储在安全的地方)并使用它。
And BCrypt.Net.BCrypt.GenerateSalt() raise an exception when used in WP7.1
Any alternative for windows phone ?
thanks for your answers :)
Steve
Do you mean you want to generate a Salt? You really should not do that on the phone right as it would be discoverable? The salt value should be a secret (perhaps provided by a web service). See Rob's excellent article here:
http://robtiffany.com/tag/rfc2898derivebytes/
If you absolutely need to generate the salt on the phone you simply could use a random generator to create 8 bytes (then store it somewhere secure) and use that.
这篇关于我需要在WP(SDK 7.1)下用BCrypt生成盐怎么做?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!