[W.I.P] In-memory secure types framework for Go.
- SecureInteger
- SecureString
import (
secure "github.com/Dentrax/obscure-go/types"
)
secInt := secure.NewInt(15)
secStr := secure.NewString("foo")
// Importing
import (
secure "github.com/Dentrax/obscure-go/types"
)
// Creating
w := obs.CreateWatcher("watcher")
// Attaching
secInt.AddWatcher(w)
secStr.AddWatcher(w)
type ISecureInt interface {
Apply() ISecureInt
AddWatcher(obs obs.Observer)
SetKey(int)
Inc() ISecureInt
Dec() ISecureInt
Set(int) ISecureInt
Get() int
GetSelf() *SecureInt
Decrypt() int
RandomizeKey()
IsEquals(ISecureInt) bool
}
type ISecureString interface {
Apply() ISecureString
AddWatcher(obs obs.Observer)
SetKey(int)
Set(string) ISecureString
Get() string
GetSelf() *SecureString
Decrypt() []rune
RandomizeKey()
IsEquals(ISecureString) bool
}
- Non-Secure
$ go run ./examples/games/nonsecure/game_nonsecure.go
- Secure
$ go run ./examples/games/secure/game_secure.go
The base project code is licensed under MIT License unless otherwise specified. Please see the LICENSE file for more information.
obscure-go was created by Furkan (Dentrax)
obscure-go