github.com/Aoi-hosizora/ahlib-more@v1.5.1-0.20230404072844-256112befaf6/xcrypto/README.md (about)

     1  # xcrypto
     2  
     3  ## Dependencies
     4  
     5  + github.com/Aoi-hosizora/ahlib
     6  + golang.org/x/crypto
     7  
     8  ## Documents
     9  
    10  ### Types
    11  
    12  + None
    13  
    14  ### Variables
    15  
    16  + None
    17  
    18  ### Constants
    19  
    20  + `const BcryptMinCost int`
    21  + `const BcryptMaxCost int`
    22  + `const BcryptDefaultCost int`
    23  
    24  ### Functions
    25  
    26  + `func FNV32(text string) uint32`
    27  + `func FNV32a(text string) uint32`
    28  + `func FNV64(text string) uint64`
    29  + `func FNV64a(text string) uint64`
    30  + `func FNV128(text string) string`
    31  + `func FNV128a(text string) string`
    32  + `func CRC32(text string) uint32`
    33  + `func CRC64(text string) uint64`
    34  + `func ADLER32(text string) uint32`
    35  + `func MD4(text string) string`
    36  + `func MD5(text string) string`
    37  + `func SHA1(text string) string`
    38  + `func SHA224(text string) string`
    39  + `func SHA256(text string) string`
    40  + `func SHA384(text string) string`
    41  + `func SHA512(text string) string`
    42  + `func SHA512_224(text string) string`
    43  + `func SHA512_256(text string) string`
    44  + `func SHA3_224(text string) string`
    45  + `func SHA3_256(text string) string`
    46  + `func SHA3_384(text string) string`
    47  + `func SHA3_512(text string) string`
    48  + `func Uint32Hasher(algorithm hash.Hash32, text string) uint32`
    49  + `func Uint64Hasher(algorithm hash.Hash64, text string) uint64`
    50  + `func StringHasher(algorithm hash.Hash, text string) string`
    51  + `func HexEncodeToBytes(data []byte) []byte`
    52  + `func HexEncodeToString(data []byte) string`
    53  + `func HexDecodeFromBytes(data []byte) ([]byte, error)`
    54  + `func HexDecodeFromString(data string) ([]byte, error)`
    55  + `func Base32EncodeToBytes(data []byte) []byte`
    56  + `func Base32EncodeToString(data []byte) string`
    57  + `func Base32DecodeFromBytes(data []byte) ([]byte, error)`
    58  + `func Base32DecodeFromString(data string) ([]byte, error)`
    59  + `func Base64EncodeToBytes(data []byte) []byte`
    60  + `func Base64EncodeToString(data []byte) string`
    61  + `func Base64DecodeFromBytes(data []byte) ([]byte, error)`
    62  + `func Base64DecodeFromString(data string) ([]byte, error)`
    63  + `func PKCS5Padding(data []byte, blockSize int) []byte`
    64  + `func PKCS5Trimming(data []byte) []byte`
    65  + `func BcryptEncrypt(password []byte, cost int) ([]byte, error)`
    66  + `func BcryptEncryptWithDefaultCost(password []byte) ([]byte, error)`
    67  + `func BcryptCompare(password, encrypted []byte) (ok bool, err error)`
    68  
    69  ### Methods
    70  
    71  + None