Skip to content

Commit a105967

Browse files
authored
Added go-andotp library usage
1 parent fdea30d commit a105967

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,19 @@ $ go-andotp -d -i file.aes.json -o file.json
3838
$ go-andotp -d -i file.aes.json
3939
```
4040

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+
4155
# License
4256
[MIT](https://github.com/grijul/go-andotp/blob/main/LICENSE)

0 commit comments

Comments
 (0)