Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
github.com/mdalai/go-dev/cryptography/crypt
./crypt hash test.txt main.go
./crypt hash -sha256 test.txt
./crypt hash -str "hello world"
./crypt hash -str "hello world" -sha256
# Encrypt a string to string output
./crypt encrypt -str "hello world"
# Encrypt a string to bytes output
./crypt encrypt -str "hello world" -toByte
# Encrypt a file
./crypt encrypt hello.txt hello.txt.enc key.file
# Decrypt a byte string, the output is "hello world". Can also output to bytes by using "-toByte".
./crypt decrypt -str "[119 171 45 78 180 7 48 205 149 76 24 168 109 74 246 254 196 218 103 218 250 144 126 139 62 110 196 82 126 145 144 234 167 218 212 199 148 103 229]"
# Decrypt a file to std output
./crypt decrypt hello.txt.enc key.file
# Decrypt a file to another file
./crypt decrypt hello.txt.enc hello.txt.dec key.file
os.open()
VS ioutil.ReadFile()
?FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.