https://github.com/kahlys/webcrypto
Golang wrapper around the WebCryptoAPI
https://github.com/kahlys/webcrypto
golang golang-wrapper webcrypto-api
Last synced: 5 months ago
JSON representation
Golang wrapper around the WebCryptoAPI
- Host: GitHub
- URL: https://github.com/kahlys/webcrypto
- Owner: kahlys
- License: mit
- Created: 2018-02-08T10:42:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-23T09:49:14.000Z (almost 7 years ago)
- Last Synced: 2025-04-04T00:33:40.720Z (11 months ago)
- Topics: golang, golang-wrapper, webcrypto-api
- Language: Go
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webcrypto

[](https://godoc.org/github.com/kahlys/webcrypto)
[](https://goreportcard.com/report/github.com/kahlys/webcrypto)
Golang wrapper around the WebCryptoAPI.
## Installation
With a correctly configured [Go toolchain](https://golang.org/doc/install):
```
$ go get -u github.com/gopherjs/gopherjs
$ go get -u github.com/kahlys/webcrypto
```
## Testing
Go to the test directory, compile using gopherjs, then open `test.html` with a browser and look results at the console.
```
$ cd test
$ gopherjs build test.go
```
## Packages
- [SHA](https://godoc.org/github.com/kahlys/webcrypto/sha) : [sha-1](https://godoc.org/github.com/kahlys/webcrypto/sha#Sum1) | [sha-256](https://godoc.org/github.com/kahlys/webcrypto/sha#Sum256) | [sha-384](https://godoc.org/github.com/kahlys/webcrypto/sha#Sum384) | [sha-512](https://godoc.org/github.com/kahlys/webcrypto/sha#Sum512)
- [AES](https://godoc.org/github.com/kahlys/webcrypto/aes) : [cbc](https://godoc.org/github.com/kahlys/webcrypto/aes#EncryptCBC) | [gcm](https://godoc.org/github.com/kahlys/webcrypto/aes#EncryptGCM)
- [RSA](https://godoc.org/github.com/kahlys/webcrypto/rsa) : [rsassa-pkcs1-v1_5](https://godoc.org/github.com/kahlys/webcrypto/rsa#SignPKCS1) | [rsa-pss](https://godoc.org/github.com/kahlys/webcrypto/rsa#SignPSS) | ["rsa-oaep"](https://godoc.org/github.com/kahlys/webcrypto/rsa#EncryptOAEP)
- [ECDSA](https://godoc.org/github.com/kahlys/webcrypto/ecdsa)