Skip to content

mxschmitt/golang-safe-in-cloud

Repository files navigation

contributions welcome GoDoc License Go Report Build Status

SafeInCloud Golang Decryption

Provides decryption of a SafeInCloud database in Golang.

Example

package main

import (
    "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)
}

About

Library which provides decryption of a SafeInCloud database in Golang.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages