Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kahlys/webcrypto

Golang wrapper around the WebCryptoAPI
https://github.com/kahlys/webcrypto

golang golang-wrapper webcrypto-api

Last synced: 3 days ago
JSON representation

Golang wrapper around the WebCryptoAPI

Awesome Lists containing this project

README

        

# webcrypto

![stability-wip](https://img.shields.io/badge/stability-work_in_progress-lightgrey.svg)
[![GoDoc](https://godoc.org/github.com/kahlys/webcrypto?status.svg)](https://godoc.org/github.com/kahlys/webcrypto)
[![Go Report Card](https://goreportcard.com/badge/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)