INNER CODE UNIT · Kotlin

printIntro

terl/lazysodium-java · sample-app/src/main/kotlin/Main.kt:392

        private fun printIntro() {
            log("Please provide, as a command line argument, one of the following numbers:")
            log("1. Secret key: Perform encryption using a symmetric key.")
            log("2. Public key: Encryption using public-private key.")
            log("3. Generic hashing: Hash arbitrarily.")
            log("4. Password hashing: Password hash.")
            log("5. Sign (detached): Sign a message in detached mode.")
            log()
        }

        // Helpers
        private fun log(s: String = "") {
            println(s)
        }

        private fun logt(s: String) {
            println("\t" + s)
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…