Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Driver-C/tryssh
/ IsEncrypted
Function
IsEncrypted
pkg/utils/crypto.go:186–188 ·
view source on GitHub ↗
IsEncrypted checks if a value has the encrypted prefix.
(s string)
Source
from the content-addressed store, hash-verified
184
185
// IsEncrypted checks if a value has the encrypted prefix.
186
func
IsEncrypted(s string) bool {
187
return
strings.HasPrefix(s, encryptedPrefix)
188
}
Callers
7
TestEncryptConfigForSave_EncryptsPassword
Function · 0.92
decryptConfig
Function · 0.92
encryptConfigForSave
Function · 0.92
countPlaintextPasswords
Function · 0.92
Decrypt
Function · 0.85
TestEncryptDecrypt_RoundTrip
Function · 0.85
TestIsEncrypted
Function · 0.85
Calls
no outgoing calls
Tested by
3
TestEncryptConfigForSave_EncryptsPassword
Function · 0.74
TestEncryptDecrypt_RoundTrip
Function · 0.68
TestIsEncrypted
Function · 0.68