数据集值的密码 [英] password from dataset values

查看:95
本文介绍了数据集值的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友我在我的项目中创建了一个用于密码目的的数据库..数据库中3个字段的值(字段名称是ID,用户名和密码)..所以当我用vb表单连接数据库时,我把值放入在数据库中输入的用户名和密码,在两个不同的文本框中,然后我发现一个错误,例如管理员附近的语法不正确。这里管理员我在用户名的第一个文本框中插入的值...

Friends i made a database for password purpose in my project.. the value of 3 fields in database (fields name are ID , Username and Password ).. so when i connected database with vb form then i put the the value of Username and password which is entered in database, in two different textboxes then i found an error such as "Incorrect syntax near 'admin'." here the admin the value which i inserted in the 1st textbox for username...

推荐答案

和??你没有显示你的代码所以几乎不可能告诉你你做错了什么。



我也觉得你做错了TON就像在数据库中以明文形式存储密码一样。您可能还使用字符串连接来构建SQL查询,以便直接在SQL查询中使用文本框文本值来查找用户名和密码。



我强烈建议您谷歌的SQL注入攻击找出了为什么这么糟糕,以及你怎么做。



另外,阅读这个 [ ^ ]和 this [ ^ ],这个 [ ^ ]了解如何存储密码。
And?? You haven't shown your code so it's pretty much impossible to tell you what you did wrong.

I also get the feeling you're doing a TON of stuff wrong, like storing passwords in plain text in the database. You're probably also using string concatenation to build an SQL query to find the username and password using the textbox text values directly in the SQL query.

I STRONGLY suggest you Google for "SQL Injection Attack" to find out why that's so bad and what yo do about it.

Also, read this[^] and this[^], this[^] to find out how to store passwords.


这篇关于数据集值的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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