简体   繁体   English

如果我迁移网站,加密密码最安全、最快捷的方法是什么?

[英]What's the safest and quickest way of encrypting a password if I migrate a website?

Can you advise on the quickest way I could encrypt a password and keep it secure?您能否就我加密密码并确保其安全的最快方法提出建议? And is there a way to transfer it?有没有办法转移它? (I need PHP encryption) (我需要PHP加密)

What I want is to probably migrate the site to another server and I wanna know if all the passwords will still be functioning?我想要的是可能将站点迁移到另一台服务器,我想知道所有密码是否仍然有效?

It really depends on what the passwords are used for, maybe you could explain a bit more.这实际上取决于密码的用途,也许您可​​以多解释一下。

  1. They are user passwords used to authenticate the users, then they should be hashed with password_hash() .它们是用于对用户进行身份验证的用户密码,然后应该使用password_hash() 对它们进行散列。 Most other languages offer similar hash functions, especially when used with the parameter PASSWORD_BCRYPT.大多数其他语言提供类似的散列函数,尤其是与参数 PASSWORD_BCRYPT 一起使用时。
  2. They are used to login eg to a database, then they could be encrypted, but this leads to question of how to store the key.它们用于登录例如数据库,然后它们可以被加密,但这导致了如何存储密钥的问题。 It depends on the target system how safe you can store those passwords.这取决于目标系统可以存储这些密码的安全程度。

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

相关问题 将数据/ SQL负载写入文本文件的最安全方法是什么? - What's the safest way to write loads of data / SQL to a text file? 从mysql中删除数据最安全的方法是什么? (PHP / MySQL的) - What's the safest way to remove data from mysql? (PHP/Mysql) 检查字符串是否为bcrypt哈希的最简单,最快捷的方法是什么? - What's the easiest and quickest way to check if a string is a bcrypt hash? 从特定标签中剥离字符串的最快方法是什么 - What's the quickest way to strip a string from a specific tag 在 PHP 中访问 CLI 程序的最安全方法是什么 - What is the safest way to access CLI program in PHP 记录用户在网站上输入数据的最简单,最安全的方法是什么 - What's the easiest and safest way to record data being inputted by a user on a web site 检查未知类型数是否为0的最安全方法是什么? AKA为什么float(0)不等于(int)0? - What's the safest way to check if a number of unknown type is 0? AKA Why float(0) is not equal to (int)0? 在论坛中逃避输入的正确/最安全的方法是什么? - What is the correct/safest way to escape input in a forum? 共享对象最安全的方法是什么? - What is the safest way to share objects PHP 从cakephp-2.0.2升级到cakephp-2.0.3的最简单/正确/最安全的方法是什么? - What's the easiest/correct/safest way to upgrade from cakephp-2.0.2 to cakephp-2.0.3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM