Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mdalai/go-dev/cryptography/crypt

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mdalai/go-dev/cryptography/crypt

  • v0.0.0-20241024024536-eac6bdcf8465
  • Source
  • Go
  • Socket score

Version published
Created
Source

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

FAQ

  1. Read file with os.open() VS ioutil.ReadFile()?

FAQs

Package last updated on 24 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc