Skip to content

jj-tay/hash-nric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hash-nric

Hash NRICs in files with SHA256

First, make the script executable:

chmod +x hash_nric.sh

To hash a file sample.txt containing NRICs, execute the following:

./hash_nric.sh sample.txt

This will produce a file hashed_sample.txt in the same directory as sample.txt but NRICs are replaced with their SHA256 hashes. The prefixed "hashed_" is fixed.

If you want a different name for the output file, then:

./hash_nric.sh sample.txt newname.txt

About

Hash NRICs in files with MD5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages