crypto

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package crypto useful crypto functions Reference: https://medium.com/@jcox250/password-hash-salt-using-golang-b041dc94cb72

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePwd

func ComparePwd(hashedPwd string, plainPwd string) bool

ComparePwd compare password

func DecodeCFB added in v2.2.0

func DecodeCFB(s, key string) (string, error)

DecodeCFB decode CFB

func EncodeCFB added in v2.2.0

func EncodeCFB(s string, key string) (string, error)

EncodeCFB encode CFB

func EncodeCFBInt64 added in v2.2.0

func EncodeCFBInt64(i int64, key string) (string, error)

EncodeCFB encode CFB Int64

func EncryptPwd

func EncryptPwd(pwd string) string

EncryptPwd encrypt password

Types

This section is empty.

Jump to

Keyboard shortcuts

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