Git Product home page Git Product logo

obscure-go's Introduction

[W.I.P] In-memory secure types framework for Go.

MIT Go Report Build Status Build Status GitHub release


Supports

  • SecureInteger
  • SecureString

Usage

Importing

import (
	secure "github.com/Dentrax/obscure-go/types"
)

Creating

secInt := secure.NewInt(15)
secStr := secure.NewString("foo")

Hack Detecting

// Importing
import (
	secure "github.com/Dentrax/obscure-go/types"
)

// Creating
w := obs.CreateWatcher("watcher")

// Attaching
secInt.AddWatcher(w)
secStr.AddWatcher(w)

Function Interfaces

Integer

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
}

String

type ISecureString interface {
	Apply() ISecureString
	AddWatcher(obs obs.Observer)
	SetKey(int)
	Set(string) ISecureString
	Get() string
	GetSelf() *SecureString
	Decrypt() []rune
	RandomizeKey()
	IsEquals(ISecureString) bool
}

Example

  • Non-Secure
$ go run ./examples/games/nonsecure/game_nonsecure.go
  • Secure
$ go run ./examples/games/secure/game_secure.go 

License

The base project code is licensed under MIT License unless otherwise specified. Please see the LICENSE file for more information.

Copyright

obscure-go was created by Furkan (Dentrax)

obscure-go

obscure-go's People

Contributors

dentrax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

obscure-go's Issues

FakeValue is plain text in memory

When you store FakeValues for Int and String, aren't you making it easy for a hacker to just read those values in plain text with any memory-read tool?

Why not store FakeValue encrypted as well and just compare the encrypted versions of FakeValue and RealValue, thereby making plain-text reading harder?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.