Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6859511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:17:33+00:00 2026-05-27T02:17:33+00:00

Say someone purchases something in store and I have set up so the customer

  • 0

Say someone purchases something in store and I have set up so the customer receives an e-mail confirming the purchase and date of delivery, I want to put the customers credit card details on the e-mail but i want them to be in the format off ******1234, how would i go about hashing out the first 12 digits and leaving the rest to be seen?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:17:33+00:00Added an answer on May 27, 2026 at 2:17 am

    Use the .substring() method on the credit card string to get the last four digits out and prepend those with asterisks as needed.

    Module Module1
        Sub Main()
    
        Dim creditCard As String = "4190050030182223"
    
        Dim lastFour As String = creditCard.substring(creditCard.length-4)
        Dim asterisks As new String("*"c, creditCard.length - 4);
    
        Console.WriteLine("Send this: {0}", String.Concat(asterisks, lastFour))
        End Sub
    End Module
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In another discussion , someone say something about run the java code on its
Say I have a subdomain xxx.yyy.com running Apache. The files are stored in /home/someone/public_html/xxx
Hoping someone can clear this up for me. Let's say I have 2 globals:
Hypothetically, tets say someone tells you to to expect X (like 100,000 or something)
Say someone (evil) has set us a timer with setInterval , but we don't
So, let's say someone is typing something into a textarea. Something as simple as
All, Say someone submits $1234, well I want to check to see if the
Say someone executes the following in a terminal: echo 'start working' > /etc/.example and
I am using Webview to implement browser capabilities in my project. Lets say someone
Can someone tell me why when I cast a string of say 00332 I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.