We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdea30d commit a105967Copy full SHA for a105967
README.md
@@ -38,5 +38,19 @@ $ go-andotp -d -i file.aes.json -o file.json
38
$ go-andotp -d -i file.aes.json
39
```
40
41
+## Using go-andotp as library
42
+go-andotp can be used as library as well. It implements ```Encrypt()``` and ```Decrypt()``` functions to encrypt/decrypt text (respectively).
43
+It's documentation is available at: https://pkg.go.dev/github.com/grijul/go-andotp/andotp
44
+
45
+Example usage:
46
+```go
47
+import "github.com/grijul/go-andotp/andotp"
48
49
+func main() {
50
+ andotp.Encrypt(...)
51
+ andotp.Decrypt(...)
52
+}
53
+```
54
55
# License
56
[MIT](https://github.com/grijul/go-andotp/blob/main/LICENSE)
0 commit comments