Documentation ¶
Index ¶
- func DarkenPath(path string, key string) string
- func DecryptByte(data []byte, key string) []byte
- func DecryptPath(encryptedPath string, key string) string
- func DecryptStringFromUbac(data string, key string) []byte
- func Encrypt(data []byte, key string) []byte
- func EncryptFile(filename string, key string) []byte
- func EncryptString(filename string, key string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DarkenPath ¶
Return the path encrypted as it appears in the encrypted fs As we use JSON.Marshall to embed resource in fs and the resource name, which is the path encrypted, is a []byte it is encoded with base64 In that way , to obtain path as it appear in FS we encrypt it and then encode it using base64
func DecryptByte ¶
func DecryptPath ¶
Decrypt a path of encrypted fs first it decode it using base64 and then decrypt it finally it convert it in a string
func DecryptStringFromUbac ¶
Decrypt String from ubac with the key As it is from ubac 'data' is a base64 encoded byte array
func EncryptFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.