In your root gradle.build add apply from: 'https://raw.githubusercontent.com/gradle-fury/gradle-fury/develop/gradle/encryption.gradle'
gradlew generateMasterKey
gradlew encryptPassword
. This will print the cipher text to stdout. It make this more useful, try gradlew encryptPassword -PstoreField=NEXUS_PASSWORD
whereby NEXUS_PASSWORD is the field within gradle.properties is that you want to encrypt. The cipher text is automatically added to local.properties
The cipher text is stored as key={CIPHERTEXT}. The opening and closing brackets are used internal to determine if something could be encrypted. "key" is the normal set of properties keys used by fury (and android)