- ASP.NET Core 2 High Performance(Second Edition)
- James Singleton
- 148字
- 2021-07-08 09:39:01
Slower is sometimes better
In some situations, processes are designed to be slow, and this is essential to their operation and security. A good example of this, which may be a hit in profiling, is password hashing or key stretching. A secure password hashing function should be slow so that the password, which (despite being bad practice) may have been reused on other services, is not easily recovered.
We should not use generic hashing functions, such as MD5, SHA1, and SHA256, to hash passwords because they are too quick. Some better algorithms that are designed for this task are PBKDF2 and bcrypt or even Argon2 for new projects. Always remember to use a unique salt per password too. We won't go into any more details here, but you can clearly see that speeding up password hashing would be bad, and it's important to identify where to apply optimizations.
- C語言程序設計實踐教程(第2版)
- 案例式C語言程序設計
- Flutter開發實戰詳解
- 深入淺出Spring Boot 2.x
- Learning Bayesian Models with R
- 網絡爬蟲原理與實踐:基于C#語言
- Java Web程序設計任務教程
- Extending Puppet(Second Edition)
- INSTANT Sinatra Starter
- Apache Camel Developer's Cookbook
- Raspberry Pi Robotic Projects(Third Edition)
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- C語言程序設計教程
- Unreal Engine Game Development Cookbook
- Scala編程(第4版)