Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mxschmitt/golang-safe-in-cloud
Library which provides decryption of a SafeInCloud database in Golang.
https://github.com/mxschmitt/golang-safe-in-cloud
golang golang-libary linux password-manager safeincloud safeincloud-database
Last synced: 16 days ago
JSON representation
Library which provides decryption of a SafeInCloud database in Golang.
- Host: GitHub
- URL: https://github.com/mxschmitt/golang-safe-in-cloud
- Owner: mxschmitt
- License: mit
- Created: 2017-03-09T22:57:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T07:59:06.000Z (almost 7 years ago)
- Last Synced: 2024-10-26T03:06:22.458Z (about 2 months ago)
- Topics: golang, golang-libary, linux, password-manager, safeincloud, safeincloud-database
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/mxschmitt/golang-safe-in-cloud/issues)
[![GoDoc](https://godoc.org/github.com/mxschmitt/golang-safe-in-cloud?status.svg)](http://godoc.org/github.com/mxschmitt/golang-safe-in-cloud)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](http://opensource.org/licenses/MIT)
[![Go Report](https://img.shields.io/badge/Go_report-A+-brightgreen.svg)](http://goreportcard.com/report/mxschmitt/golang-safe-in-cloud)
[![Build Status](https://travis-ci.org/mxschmitt/golang-safe-in-cloud.svg?branch=master)](https://travis-ci.org/mxschmitt/golang-safe-in-cloud)# SafeInCloud Golang Decryption
Provides decryption of a SafeInCloud database in Golang.
# Example
```golang
package mainimport (
"fmt"
"log"
"os""github.com/mxschmitt/golang-safe-in-cloud"
)func main() {
file, err := os.Open("SafeInCloud.db")
if err != nil {
log.Fatalf("could not read file: %v", err)
}
raw, err := sic.Decrypt(file, "foobar")
if err != nil {
log.Fatalf("could not decrypt: %v", err)
}
fmt.Println(string(raw))
x, err := sic.Unmarshal(raw)
if err != nil {
log.Fatalf("could not unmarshal: %v", err)
}
fmt.Printf("data: %+v\n", x)
}
```