Documentation ¶
Index ¶
- func CreateKeyStore(password string) string
- func GenerateMayus() string
- func GenerateMin() string
- func GenerateNumber() string
- func GeneratePassRand(long int, mayus bool, special bool, numbers bool) string
- func GeneratePublicAddress() (string, string, string)
- func GenerateSpecial() string
- func ImportKeyStore(file []byte, password string) string
- func ProcessPassword(count int, min Functions, mayus Functions, special Functions, ...) string
- type Functions
- type JWTAuthenticationBackend
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeyStore ¶
CreateKeyStore function creates a keystore file
func GenerateNumber ¶
func GenerateNumber() string
GenerateNumber the same method to generate one rand number as a char
func GeneratePassRand ¶
GeneratePassRand determines how the password must be done
func GeneratePublicAddress ¶
GeneratePublicAddress generate the public address which is what you're used to seeing
func GenerateSpecial ¶
func GenerateSpecial() string
GenerateSpecial generates one special character from the list
func ImportKeyStore ¶
ImportKeyStore function to import jeystore file
Types ¶
type JWTAuthenticationBackend ¶
type JWTAuthenticationBackend struct { PublicKey *rsa.PublicKey // contains filtered or unexported fields }
JWTAuthenticationBackend struct to save keys
func InitJWTAuthenticationBackend ¶
func InitJWTAuthenticationBackend() *JWTAuthenticationBackend
InitJWTAuthenticationBackend set keys if they aren't
func (*JWTAuthenticationBackend) GenerateToken ¶
func (backend *JWTAuthenticationBackend) GenerateToken(userEmail string) (string, int64, error)
GenerateToken funtion generates one json token, argument is the user email, better change it to UUID?
Click to show internal directories.
Click to hide internal directories.