├── .bazelrc ├── .github └── workflows │ ├── coverage.yml │ ├── lint.yml │ └── test.yml ├── .gitignore ├── BUILD.bazel ├── CHANGELOG.md ├── Core.swift ├── Crypt.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── Crypt ├── Crypt-Bridging-Header.h ├── CryptAuthPlugin.h ├── CryptAuthPlugin.m ├── Info.plist └── Mechanisms │ ├── Check.swift │ └── CryptGUI.swift ├── Example Crypt Profile.mobileconfig ├── Filevault.swift ├── Keychain.swift ├── LICENSE ├── Logging.swift ├── MODULE.bazel ├── MODULE.bazel.lock ├── Makefile ├── Package ├── Distribution-Template ├── PackageInfo ├── build.sh ├── build_no.sh ├── com.grahamgilbert.crypt.plist ├── newsyslog.d │ └── crypt.conf ├── notarize ├── notarize.sh ├── postinstall └── preinstall ├── Preferences.swift ├── README.md ├── WORKSPACE ├── authmod └── main.swift ├── cmd ├── BUILD.bazel └── main.go ├── deps.bzl ├── go.mod ├── go.sum ├── pkg ├── authmechs │ ├── BUILD.bazel │ ├── authemechs.go │ └── authmechs_test.go ├── checkin │ ├── BUILD.bazel │ ├── escrow.go │ └── escrow_test.go ├── pref │ ├── BUILD.bazel │ ├── pref.go │ ├── pref_helpers.go │ └── pref_test.go └── utils │ ├── BUILD.bazel │ ├── console_user.go │ ├── console_user_darwin.go │ ├── console_user_test.go │ ├── curl.go │ ├── curl_test.go │ ├── exec.go │ ├── exec_mocks.go │ ├── exec_test.go │ ├── get_computer_name.go │ ├── get_computer_name_test.go │ ├── keychain.go │ ├── keychain_test.go │ ├── os_version.go │ ├── os_version_test.go │ ├── serial.go │ ├── string_in_slice.go │ └── string_in_slice_test.go ├── ppctcc_example.mobileconfig └── tools ├── bazel_to_builddir.sh └── coverage.sh /.bazelrc: -------------------------------------------------------------------------------- 1 | build --action_env=CGO_ENABLED=1 -------------------------------------------------------------------------------- /.github/workflows/coverage.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/.github/workflows/coverage.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/.gitignore -------------------------------------------------------------------------------- /BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/BUILD.bazel -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Core.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Core.swift -------------------------------------------------------------------------------- /Crypt.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Crypt.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt.xcodeproj/project.xcworkspace/contents.xcworkspacedata -------------------------------------------------------------------------------- /Crypt/Crypt-Bridging-Header.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt/Crypt-Bridging-Header.h -------------------------------------------------------------------------------- /Crypt/CryptAuthPlugin.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt/CryptAuthPlugin.h -------------------------------------------------------------------------------- /Crypt/CryptAuthPlugin.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt/CryptAuthPlugin.m -------------------------------------------------------------------------------- /Crypt/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt/Info.plist -------------------------------------------------------------------------------- /Crypt/Mechanisms/Check.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt/Mechanisms/Check.swift -------------------------------------------------------------------------------- /Crypt/Mechanisms/CryptGUI.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Crypt/Mechanisms/CryptGUI.swift -------------------------------------------------------------------------------- /Example Crypt Profile.mobileconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Example Crypt Profile.mobileconfig -------------------------------------------------------------------------------- /Filevault.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Filevault.swift -------------------------------------------------------------------------------- /Keychain.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Keychain.swift -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/LICENSE -------------------------------------------------------------------------------- /Logging.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Logging.swift -------------------------------------------------------------------------------- /MODULE.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/MODULE.bazel -------------------------------------------------------------------------------- /MODULE.bazel.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/MODULE.bazel.lock -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Makefile -------------------------------------------------------------------------------- /Package/Distribution-Template: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/Distribution-Template -------------------------------------------------------------------------------- /Package/PackageInfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/PackageInfo -------------------------------------------------------------------------------- /Package/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/build.sh -------------------------------------------------------------------------------- /Package/build_no.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/build_no.sh -------------------------------------------------------------------------------- /Package/com.grahamgilbert.crypt.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/com.grahamgilbert.crypt.plist -------------------------------------------------------------------------------- /Package/newsyslog.d/crypt.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/newsyslog.d/crypt.conf -------------------------------------------------------------------------------- /Package/notarize: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/notarize -------------------------------------------------------------------------------- /Package/notarize.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/notarize.sh -------------------------------------------------------------------------------- /Package/postinstall: -------------------------------------------------------------------------------- 1 | #!/bin/zsh --no-rcs 2 | set -e 3 | 4 | /Library/Crypt/checkin -install -------------------------------------------------------------------------------- /Package/preinstall: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Package/preinstall -------------------------------------------------------------------------------- /Preferences.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/Preferences.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/README.md -------------------------------------------------------------------------------- /WORKSPACE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/WORKSPACE -------------------------------------------------------------------------------- /authmod/main.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/authmod/main.swift -------------------------------------------------------------------------------- /cmd/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/cmd/BUILD.bazel -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/cmd/main.go -------------------------------------------------------------------------------- /deps.bzl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/deps.bzl -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/go.sum -------------------------------------------------------------------------------- /pkg/authmechs/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/authmechs/BUILD.bazel -------------------------------------------------------------------------------- /pkg/authmechs/authemechs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/authmechs/authemechs.go -------------------------------------------------------------------------------- /pkg/authmechs/authmechs_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/authmechs/authmechs_test.go -------------------------------------------------------------------------------- /pkg/checkin/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/checkin/BUILD.bazel -------------------------------------------------------------------------------- /pkg/checkin/escrow.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/checkin/escrow.go -------------------------------------------------------------------------------- /pkg/checkin/escrow_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/checkin/escrow_test.go -------------------------------------------------------------------------------- /pkg/pref/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/pref/BUILD.bazel -------------------------------------------------------------------------------- /pkg/pref/pref.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/pref/pref.go -------------------------------------------------------------------------------- /pkg/pref/pref_helpers.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/pref/pref_helpers.go -------------------------------------------------------------------------------- /pkg/pref/pref_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/pref/pref_test.go -------------------------------------------------------------------------------- /pkg/utils/BUILD.bazel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/BUILD.bazel -------------------------------------------------------------------------------- /pkg/utils/console_user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/console_user.go -------------------------------------------------------------------------------- /pkg/utils/console_user_darwin.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/console_user_darwin.go -------------------------------------------------------------------------------- /pkg/utils/console_user_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/console_user_test.go -------------------------------------------------------------------------------- /pkg/utils/curl.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/curl.go -------------------------------------------------------------------------------- /pkg/utils/curl_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/curl_test.go -------------------------------------------------------------------------------- /pkg/utils/exec.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/exec.go -------------------------------------------------------------------------------- /pkg/utils/exec_mocks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/exec_mocks.go -------------------------------------------------------------------------------- /pkg/utils/exec_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/exec_test.go -------------------------------------------------------------------------------- /pkg/utils/get_computer_name.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/get_computer_name.go -------------------------------------------------------------------------------- /pkg/utils/get_computer_name_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/get_computer_name_test.go -------------------------------------------------------------------------------- /pkg/utils/keychain.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/keychain.go -------------------------------------------------------------------------------- /pkg/utils/keychain_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/keychain_test.go -------------------------------------------------------------------------------- /pkg/utils/os_version.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/os_version.go -------------------------------------------------------------------------------- /pkg/utils/os_version_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/os_version_test.go -------------------------------------------------------------------------------- /pkg/utils/serial.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/serial.go -------------------------------------------------------------------------------- /pkg/utils/string_in_slice.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/string_in_slice.go -------------------------------------------------------------------------------- /pkg/utils/string_in_slice_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/pkg/utils/string_in_slice_test.go -------------------------------------------------------------------------------- /ppctcc_example.mobileconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/ppctcc_example.mobileconfig -------------------------------------------------------------------------------- /tools/bazel_to_builddir.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/tools/bazel_to_builddir.sh -------------------------------------------------------------------------------- /tools/coverage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/grahamgilbert/crypt/HEAD/tools/coverage.sh --------------------------------------------------------------------------------