crypto

package
v0.0.0-...-a833e92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRandomReadFailed = errors.New("failed to encrypt pw: random read failed")
	ErrAESCreation      = errors.New("failed to encrypt pw: AES cipher creation failed")
	ErrGCMCreation      = errors.New("failed to encrypt pw: GCM mode creation failed")
)
View Source
var FacebookPubKey = "70425d9c3279f0fd3855dd64cd5588d2dfd0fe77163bd7b650e1304b5f25135b"
View Source
var FacebookPubKeyId int = 180

Functions

func EncryptPassword

func EncryptPassword(platform int, pubKeyId int, pubKey, password string) (string, error)

TO-DO: implement automatic grabbing of pub key from html module config for facebook as insta does

Types

type ABTestData

type ABTestData struct {
	// contains filtered or unexported fields
}

func NewABTestData

func NewABTestData() *ABTestData

func (*ABTestData) GenerateAbTestData

func (ab *ABTestData) GenerateAbTestData(strings []string) string

type Bitmap

type Bitmap struct {
	BMap          []int
	CompressedStr string
}

func NewBitmap

func NewBitmap() *Bitmap

func (*Bitmap) ToCompressedString

func (b *Bitmap) ToCompressedString() *Bitmap

func (*Bitmap) Update

func (b *Bitmap) Update(data []int) *Bitmap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL