package
1.0.2
Repository: https://github.com/techidea8/codectl.git
Documentation: pkg.go.dev

# Functions

AesCbcDecrypt decrypt data with key use AES CBC algorithm len(key) should be 16, 24 or 32.
AesCbcEncrypt encrypt data with key use AES CBC algorithm len(key) should be 16, 24 or 32.
AesCfbDecrypt decrypt data with key use AES CFB algorithm len(encrypted) should be great than 16, len(key) should be 16, 24 or 32.
AesCfbEncrypt encrypt data with key use AES CFB algorithm len(key) should be 16, 24 or 32.
AesCtrCrypt encrypt data with key use AES CTR algorithm len(key) should be 16, 24 or 32.
AesEcbDecrypt decrypt data with key use AES ECB algorithm len(key) should be 16, 24 or 32.
AesEcbEncrypt encrypt data with key use AES ECB algorithm len(key) should be 16, 24 or 32.
AesOfbDecrypt decrypt data with key use AES OFB algorithm len(key) should be 16, 24 or 32.
AesOfbEncrypt encrypt data with key use AES OFB algorithm len(key) should be 16, 24 or 32.
Base64StdDecode decode a base64 encoded string.
Base64StdEncode encode string with base64 encoding.
DesCbcDecrypt decrypt data with key use DES CBC algorithm len(key) should be 8.
DesCbcEncrypt encrypt data with key use DES CBC algorithm len(key) should be 8.
DesCfbDecrypt decrypt data with key use DES CFB algorithm len(encrypted) should be great than 16, len(key) should be 8.
DesCfbEncrypt encrypt data with key use DES CFB algorithm len(key) should be 8.
DesCtrCrypt encrypt data with key use DES CTR algorithm len(key) should be 8.
DesEcbDecrypt decrypt data with key use DES ECB algorithm len(key) should be 8.
DesEcbEncrypt encrypt data with key use DES ECB algorithm len(key) should be 8.
DesOfbDecrypt decrypt data with key use DES OFB algorithm len(key) should be 8.
DesOfbEncrypt encrypt data with key use DES OFB algorithm len(key) should be 8.
No description provided by the author
GenerateRsaKey create rsa private and public pemo file.
GenerateRsaKeyPair create rsa private and public key.
HmacMd5 return the hmac hash of string use md5.
HmacMd5WithBase64 return the hmac hash of string use md5 with base64.
HmacSha1 return the hmac hash of string use sha1.
HmacSha1WithBase64 return the hmac hash of string use sha1 with base64.
HmacSha256 return the hmac hash of string use sha256.
HmacSha256WithBase64 return the hmac hash of string use sha256 with base64.
HmacSha512 return the hmac hash of string use sha512.
HmacSha512WithBase64 return the hmac hash of string use sha512 with base64.
Md5Byte return the md5 string of byte slice.
Md5ByteWithBase64 return the md5 string of byte slice with base64.
Md5File return the md5 value of file.
Md5String return the md5 value of string.
Md5StringWithBase64 return the md5 value of string with base64.
RsaDecrypt decrypt data with ras algorithm.
RsaDecryptOAEP decrypts the data with RSA-OAEP.
RsaEncrypt encrypt data with ras algorithm.
RsaEncryptOAEP encrypts the given data with RSA-OAEP.
Sha1 return the sha1 value (SHA-1 hash algorithm) of string.
Sha1WithBase64 return the sha1 value (SHA-1 hash algorithm) of base64 string.
Sha256 return the sha256 value (SHA256 hash algorithm) of string.
Sha256WithBase64 return the sha256 value (SHA256 hash algorithm) of base64 string.
Sha512 return the sha512 value (SHA512 hash algorithm) of string.
Sha512WithBase64 return the sha512 value (SHA512 hash algorithm) of base64 string.