Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Mask Social Security Number (SSN) Package

Example package that uses a third party library (Regex) to mask social security numbers.

Package Implementation

We used the sdf generate command with the sdf-package.yaml file to generate the project and then applied code changes to the following files:

Build the Package

Generate package binary:

sdf build

Test the Code with SDF

Test the code with:

sdf test
>> test function mask-ssn --value "My SSN is 534-34-3443."
My SSN is ***-**-****.

Test the code with Cargo

The following command will test the code with cargo:

(cd rust/mask-ssn && cargo test)

Package Ready

After building the package, it is ready for use in dataflows: