Questions tagged [masking]

Force user input to conform to given rules.

Input masking restricts inputs for a given UI element without actually performing validation. Instead of collecting and validating user input, the masking approach restricts the inputs that a user can make in the first place.

An example of this would be a text field that is set to accept telephone numbers from a given country: instead of collecting digits and letters, and then validating them against the format, an input-masked field will only allow digits to be input, and will only accept them in an order that forms a valid input.

When dealing with arrays / matrices 'masking' means to ignoring certain parts of the array an only use the unmasked elements for further calculations.

1153 questions
-2
votes
2 answers

Masking inputs any field and values

I would like to know how to get the length of an input and replace everything between the values start and end but leave 2 chars and both ends. I don't want to predefine the length as I want it to work on any input with any value and still be able…
Zoric
  • 61
  • 12
-2
votes
2 answers

What's the name of Polygon Masking?

When masking a bitmap by reducing the polygons it's displayed on, what is the name of doing this? I often see this done for physics, sort of, to have an edge around an object for detection etc, but a long while ago remember seeing a similar approach…
Confused
  • 6,048
  • 6
  • 34
  • 75
-2
votes
2 answers

Special masking operation in c++

I need to xor the every single bits each other in a variable using c++ Let's consider 4-bit values a and x where their bit-representation is a = a3a2a1a0 and x = x3x2x1x0. We dene the masking operation "." as a.x = a3x3(xor)a2x2(xor)a1x1(xor)a0x0.…
-2
votes
1 answer

Only masking forward can surf the domain

I have 2 domains let's say example.com and example.mynetwork.com I am using parallels plesk webserver for main domain cpanel for subdomain The subdomain example forward with masking to example.com can I make the website only work at…
-2
votes
2 answers

To apply a function through a mask on an image

I create a closed region on a picture by impoly('Closed', true) and lastly after marking the area for the mask BW = createMask(h) in Matlab commandline. Initial commands before marking points for the mask in the figure imshow('contour.png'); h =…
Léo Léopold Hertz 준영
  • 134,464
  • 179
  • 445
  • 697
-2
votes
2 answers

java regex to mask credit card details in log

Here is my request string that is currently being printed in the server log. PaymentRequest{Id=123456, type=CREDIT_CARD, creditCardDetails=CreditCardDetails{type=VISA, name=Some Name, number=1234567890123456, expiry=0316, CCV=000},…
Kaizar Laxmidhar
  • 859
  • 1
  • 17
  • 38
-2
votes
5 answers

How to prevent password masking from bufferoverflow

#include #include #include int main () { char input[255]; int i = 0; for(;;i++) /* Infinite loop, exited when RETURN is pressed */ { char temp; temp = getch (); /* Get the current character of the password…
Kamal Kafkaesque
  • 57
  • 1
  • 2
  • 7
-2
votes
2 answers

Javascript - Link Cloaking Script needs modifying

The following script adds my affiliate extension to every url on my page. For example, if http://www.Google.com/ is on my page somewhere... Adding this script to the page will automatically change the url to-…
Thomas
  • 1
  • 1
  • 2
-3
votes
2 answers

Is bit masking comparable to "accessing an array" in bits?

For all the definitions I've seen of bit masking, they all just dive right into how to bit mask, use bitwise, etc. without explaining a use case for any of it. Is the purpose of updating all the bits you want to keep and all the bits you want to…
-3
votes
1 answer

How can some letter hide in SQL Server?

I want to some column masking in sql column. How can I do sql command?
-4
votes
2 answers

Apply string mask

I want to apply some kind of string mask, I have two Strings, the first one is final "xx" and the second one may be one letter or two letter String, If it's just one letter (for ex.'y' ) I want the resulted String to be "xy" and if it consists of…
Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118
-5
votes
3 answers

Card Number Masking

I'm trying to mask card number with regex. First 6 and last 2 chars can be shown other should "*". let cardNumber: String = "5890040000000016" print("Output: ", cardNumber.mask(regexPattern:"XXXXXXX")) // Output: 589004********16 How can I do that…
Kaan Ozdemir
  • 165
  • 2
  • 9
-6
votes
1 answer

How to mask first two letter and last four letters of credit card number

How to mask first two letter and last four letters of credit card number. I am able to do the last four digits but the first two digits I can't. I am using following code: string result = s.Substring(s.Length - 4).PadLeft(4, '*'); Please let me…
Kokirala Sudheer
  • 429
  • 2
  • 8
  • 20
1 2 3
76
77