From 9eef6075c1ec59a1240aa1b402b09f00caaefe6c Mon Sep 17 00:00:00 2001 From: Rinjae Date: Fri, 16 Jan 2026 21:27:56 +0900 Subject: [PATCH] crypto test cli --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 89da676..19ef79d 100644 --- a/build.gradle +++ b/build.gradle @@ -163,4 +163,16 @@ task printSourceSets { println " Output dir : ${srcSet.output.classesDirs.asPath}" } } +} + +// CryptoCli 실행 task (bcrypt 지원) +task cryptoCli(type: JavaExec) { + mainClass = 'com.eactive.ext.kjb.safedb.CryptoCli' + classpath = sourceSets.main.runtimeClasspath + standardInput = System.in + + // CLI 인자 전달: ./gradlew cryptoCli --args="bcrypt hash password123" + if (project.hasProperty('args')) { + args project.args.split('\\s+') + } } \ No newline at end of file