Masks a credit card number, leaving a specified number of unmasked digits.
input
string
Mask an IMEI number, leaving a specified number of unmasked digits
Checks if a given string is Valid Credit Card Number
ascent.mask.isIMEI
Checks if a given string is a Valid IMEI number.
ascent.mask.random
Generates a random alpha-numeric string of a given lenght.
Computes the CRC32 checksum of a string
Computes the MD5 hash of a string
Computes the SHA-512 hash of a string
Computes the SHA-256 hash of a string
Constant representing a fully redacted value
ascent.mask.cc(input: string, unmasked: number, maskChar: string): string;unmasked
number
maskChar
string
input
string
unmasked
number
maskChar
string
input
string
input
string
lenght
number
Length of the alpha-numeric value needed.
input
string
input
string
input
string
input
string
ascent.mask.IMEI(input: string, unmasked: number, maskChar: string): string;ascent.mask.isCC(input: string): boolean;ascent.mask.sIMEI(input: string): boolean;ascent.mask.random(length: number): string;ascent.mask.crc32(input: string): string;ascent.mask.md5(input: string): string;ascent.mask.sha512(input: string): string;ascent.mask.sha256(input: string): string;ascent.mask.redacted: string = 'REDACTED'