473,730 Members | 2,069 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert all characters to ' * ' where password is displayed...

Hi,

I have a field from my recordset called RS("Password") .
If I wish to display each character as an asterix '*' how do I go
about it.
I've seen the replace function, but cannot work out how to do it for
how ever many characters there are in the record ?
Appreciate your help

David.
Jul 19 '05 #1
20 3555
For i to Len(RS("Passwor d"))
strPass = strPass & "*"
Next

then use strPass iin your display

"David" <da***@scene-double.co.uk> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
Hi,

I have a field from my recordset called RS("Password") .
If I wish to display each character as an asterix '*' how do I go
about it.
I've seen the replace function, but cannot work out how to do it for
how ever many characters there are in the record ?
Appreciate your help

David.

Jul 19 '05 #2
Thanks,

I had just started to think about using For I = , but could not think
about the strPass = strPass & "*"
Nice one....Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Alex Goodey wrote on 02 feb 2004 in
microsoft.publi c.inetserver.as p.general:
For i to Len(RS("Passwor d"))
strPass = strPass & "*"
Next


strPass = String(Len(RS(" Password")),"*" )

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4
strPass = String(Len(strP ass), "*")

What is the reason you (OP) want to do this though? Why not just use a
length of *'s that isn't specific to the length of the user's password, if
you aren't going to display it? And you're aware of <input type=password>,
right?

Ray at work
"Alex Goodey" <ag*****@hsfina ncial.co.uk> wrote in message
news:bv******** ****@ID-221525.news.uni-berlin.de...
For i to Len(RS("Passwor d"))
strPass = strPass & "*"
Next

then use strPass iin your display

"David" <da***@scene-double.co.uk> wrote in message
news:c1******** *************** ***@posting.goo gle.com...
Hi,

I have a field from my recordset called RS("Password") .
If I wish to display each character as an asterix '*' how do I go
about it.
I've seen the replace function, but cannot work out how to do it for
how ever many characters there are in the record ?
Appreciate your help

David.


Jul 19 '05 #5
"Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ud******** ******@TK2MSFTN GP12.phx.gbl...
strPass = String(Len(strP ass), "*")

What is the reason you (OP) want to do this though? Why not just use a
length of *'s that isn't specific to the length of the user's password, if
you aren't going to display it? And you're aware of <input type=password>, right?


Ray, I hope you're joking about <input type=password>. That is, I hope you
don't mean something like this:

<%
Response.Write "<input type=""password "" value=""" & RS("Password") & """>"
%>

As I'm sure you know, viewing the source of the document would reveal the
actual value of the password.

Regards,
Peter Foti

Jul 19 '05 #6

"Peter Foti" <pe***@Idontwan tnostinkingemai lfromyou.com> wrote in message
news:10******** *****@corp.supe rnews.com...

Ray, I hope you're joking about <input type=password>. That is, I hope you don't mean something like this:

<%
Response.Write "<input type=""password "" value=""" & RS("Password") & """>" %>

As I'm sure you know, viewing the source of the document would reveal the
actual value of the password.

Yes, I know, but I still had to ask if the OP is aware of the password
input.

Ray at work
Jul 19 '05 #7
yes, but the person using the password should know it, otherwise why even
put it on the screen?
The reason behind the <input type=password> is so that a passer-by can't
read it over your shoulder.

--
Curt Christianson
Owner/Lead Developer, DF-Software
www.Darkfalz.com
"Peter Foti" <pe***@Idontwan tnostinkingemai lfromyou.com> wrote in message
news:10******** *****@corp.supe rnews.com...
"Ray at <%=sLocation% > [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ud******** ******@TK2MSFTN GP12.phx.gbl...
strPass = String(Len(strP ass), "*")

What is the reason you (OP) want to do this though? Why not just use a
length of *'s that isn't specific to the length of the user's password, if you aren't going to display it? And you're aware of <input type=password>,
right?


Ray, I hope you're joking about <input type=password>. That is, I hope

you don't mean something like this:

<%
Response.Write "<input type=""password "" value=""" & RS("Password") & """>" %>

As I'm sure you know, viewing the source of the document would reveal the
actual value of the password.

Regards,
Peter Foti

Jul 19 '05 #8
"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
yes, but the person using the password should know it, otherwise why even
put it on the screen?
The reason behind the <input type=password> is so that a passer-by can't
read it over your shoulder.


Ah, true I suppose. I guess it depends on the context of who the user is
and what they're doing. For example, if this is an admin system listing all
of the users, then it shouldn't be putting the real password value in. But
if this is an individual user, then I suppose the main risk is that the page
could be stored in cache somewhere.

-Peter

Jul 19 '05 #9
Yes, exactly! Unfortunately, the OP has disappeared and we'll probably
never know...

"Curt_C [MVP]" <software_AT_da rkfalz.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Seems like the OP was trying to do something "weird" and most likely
incorrect.

Jul 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1806
by: Arpan | last post by:
An ASP application retrieves records from a SQL Server database. In the first page of the application, the user has to enter a password & the columns retrieved from the DB table depends upon the password. For e.g. if the password entered is say, pwd1, then that user should be displayed the records of Column1 & Column2 only. If the password entered is say, pwd2, then that user should be displayed the records of Column1 & Column3 only. If...
4
2287
by: BADEV | last post by:
I've an multi-line edit box on an html page that I use to collect detailed description information. I'd also like to display that information on an html page... How do I convert it to hmtl so that line feeds and other special characters are displayed properly.
1
10583
by: Tim | last post by:
Hi, What I am trying to accomplish is to initiate remote desktop session from within my C# application to XP Pro machine NOT terminal services to a server. I have not found any way to do this with code (if you know of a way then I would love to hear about it). What I have created so far is; 1. Write RDP file to the HD from the code
5
9643
by: Socrates | last post by:
I am interested in developing an online utility that will enable users to copy and past any image (or upload any image on the internet) to the online utility, which will then convert the image to text. The user may "convert image to text" and copy and paste the text displayed into any word document, or send the text displayed to the recipient's email address or can download the text file as a zipped text file that will be presented to...
20
3442
by: Niyazi | last post by:
Hi all, I have a integer number from 1 to 37000. And I want to create a report in excel that shows in 4 alphanumeric length. Example: I can write the cutomerID from 1 to 9999 as: 1 ----> 0001 2 ----> 0002
0
2023
by: =?Utf-8?B?am1obWFpbmU=?= | last post by:
I'm trying to create a process that allows me to limit the non-alphanumeric characters generated with the PasswordRecovery control. Specially I want to suppress some characters for security reasons. With textboxes I'm doing this with a RegularExpressionValidator control and have the following the following attribute setup: ValidationExpression="^{6,100}" This limits the user input to alphanumeric characters as well of some selected...
1
4186
mahet
by: mahet | last post by:
Anders Jansson was a guest here, and he was having problem: When I try to build the web, this error is displayed: ---> Error 5 Unable to convert input xml file content to a DataSet. Invalid 'name' attribute value 'Företag': 'The '¶' character, hexadecimal value 0xB6, at position 2 within the name, cannot be included in a name.'. <start path>My Webs\ProAra\wwwroot\App_Code\kappsegling\ProAra.Ka ppSegling.rorsmandataset.xsd -->
9
6615
by: kummu4help | last post by:
can anyone give me a regex to validate the password with following conditions hope i am clear. i tried with ctype_alnum() function in php but it is accepting if all characters or either alphabet or digit. but i want to enforce atleast one alphabet and one digit should be in password can any one give me a regex for this pls.....
0
10772
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information inside an image, hide your complete image as text ,search for a particular image inside a directory, minimize the size of the image. However this is not a new concept, there is a concept called Steganography which enables to conceal your secret...
0
8943
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8770
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9441
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9300
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9229
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6725
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6029
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3257
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2712
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.