English 中文(简体)
我如何使用加密的密码到位于格拉斯的Maven Reito
原标题:How can I use an Encrypted Password to a Maven Repository in Gradle

目前,Im试图将一座马文建在格拉斯建筑。 冲锋枪一号的冲击是,我们的内部工艺品被部署到一个内部存放处,需要作认证读。

你们知道认证指的是......用户名和密码。 问题在于,我不想要求开发商储存其密码,作为硬车上的便衣。 Maven Support password encodeion,但Im看不出如何使Gradle做到这一点。

是否有某种神灵可进入Ivy CredentialStore,以支持加密密码? 或者我是否必须等待新的版本?

最佳回答

我们使用书证和书证店的罚款。

repositories {
  org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials(REALM, HOST, USER, PASSWORD);
  mavenRepo urls: [ "http://repo.mycompany.com/repo" ]
}

每位开发商使用不同的用户名称创建gradle.properties。 档案

HOST=repo.mycompany.com
REALM=My Company Realm
USER=theusername
PASSWORD={DESede}xyz123abc

The {DESede} encrypted password prefix may be a Artifactory specific convention.

问题回答




相关问题
Extend Contacts application on Android to provide encryption

I want to encrypt individual contacts stored by the Contacts application on Android based on user s preference. So, I am thinking I ll have to hook/extend the Contacts application before the it stores ...

Make md5 strong

Im making a website that will intergrate with game that only support md5 hashing metod (atm). Which ofc is not especially safe anymore. But how could i make it stronger? Should I just generate long ...

How to Pack/Encrypt/Unpack/Decrypt a bunch of files in Java?

I m essentially trying to do the following on a Java/JSP-driven web site: User supplies a password Password is used to build a strongly-encrypted archive file (zip, or anything else) containing a ...

Thread & Queue vs Serial performance

I though it ll be interesting to look at threads and queues, so I ve written 2 scripts, one will break a file up and encrypt each chunk in a thread, the other will do it serially. I m still very new ...

Convert PHP encryption code to C#

I m trying to convert this piece of code from PHP to C#. It s part of a Captive Portal. Could somebody explain what it does? $hexchal = pack ("H32", $challenge); if ($uamsecret) { $newchal = ...

Encryption: how to have 1 iv despite multiple fields

I ve been stuck trying to arrive at a best solution for this for a while. I know that an initialization vector has to be unique for each item being encrypted. So if I m encrypting an address and I ...

热门标签