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