Hello All,
I need to mask all the credit card numbers with “XXXXXX” In between the credit card number.
For example:
If the credit Card number is 1234567891234567 I need to mask the credit card as 123456XXXXXX4567.
How Can I replace 6 characters in between the credit card?
Any leads or help is much appreciated.
lakshman
(Ganta lakshman)
2
@Sirimalla_Karthik_Chandra
- Let’s say
varCreditCardNumber = “1234567891234567”
- And then try below expression.
maskedCreditCardNumber = varCreditCardNumber.Replace(varCreditCardNumber.SubString(6,6),"XXXXXX")
jeevith
(Jeevith Hegde, Ph.D.)
3
Hi @Sirimalla_Karthik_Chandra,
Either use the method suggested by @lakshman
OR
Use the Encrypt/Decrypt string activities from

This way the credit card number will be encrypted in queue (via Dispatcher) and decrypted by the robot in the performer.

1 Like
Hi @lakshman, Thank you so much for the help.
1 Like
system
(system)
Closed
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.