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: 2 months 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 (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-02T07:59:06.000Z (over 7 years ago)
- Last Synced: 2025-02-02T05:25:41.449Z (4 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
[](https://github.com/mxschmitt/golang-safe-in-cloud/issues)
[](http://godoc.org/github.com/mxschmitt/golang-safe-in-cloud)
[](http://opensource.org/licenses/MIT)
[](http://goreportcard.com/report/mxschmitt/golang-safe-in-cloud)
[](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)
}
```