使用PHP时在oracle中使用密码加密的功能 [英] What funation to use for password encryption in oracle while working with PHP

查看:110
本文介绍了使用PHP时在oracle中使用密码加密的功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..

我正在寻找使用oracle数据库作为后端的php项目。

我想加密用户提供的密码,同时将其存储到数据库中。

在查看天气用户提供的密码和系统存储密码是一样的时候我们可以用一个函数来做那个在oracle。

我知道这两个都有哈希函数和de hash函数和mysql中的password_verify函数来执行上面提到的任务。

但是我很担心关于oracle db是否在oracle中有任何功能可以完成这项工作并且还与php兼容?



我尝试了什么:



我没有使用oracle的hash de hash和password_verify函数。

请帮帮我们。

Hi..
I am woeking on a project in php that uses oracle database as back end.
I want to encrypt the user provided password while storing it into database.
And while checking weather user provided password and system stored password is same we can use a function to do that in oracle.
I know that for both this there is hash function and de hash function with password_verify function in mysql for doing the above mentioned tasks.
But I am worried about oracle db is there any function in oracle that does this job and is also compatible with php?

What I have tried:

I have tred both hash de hash and password_verify function with oracle by its of no use.
Please help guys.

推荐答案

不要对密码使用加密。密码应使用单向盐渍哈希,以便原件无法再现。请参阅简单解释安全密码验证 [ ^ ]。
Do not use encryption for passwords. A password should use a one way salted hash so that the original cannot be reproduced. See Secure Password Authentication Explained Simply[^].


这篇关于使用PHP时在oracle中使用密码加密的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆