diff --git a/nifi-toolkit/nifi-toolkit-encrypt-config/pom.xml b/nifi-toolkit/nifi-toolkit-encrypt-config/pom.xml index 8815d5e9c5..8acf23a1a4 100644 --- a/nifi-toolkit/nifi-toolkit-encrypt-config/pom.xml +++ b/nifi-toolkit/nifi-toolkit-encrypt-config/pom.xml @@ -163,18 +163,6 @@ - - org.apache.rat - apache-rat-plugin - - - src/test/resources/scrypt.py - - **/secure_hash.key - **/secure_hash_128.key - - - diff --git a/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/scrypt.py b/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/scrypt.py deleted file mode 100644 index 97ba86fa7a..0000000000 --- a/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/scrypt.py +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/env python - -import base64 -from passlib.hash import scrypt - - -def secure_hash(password, base64_encoded_salt): - hash = scrypt.using(salt=base64.b64decode(base64_encoded_salt), rounds=4, block_size=8, parallelism=1).hash(password) - return hash - - -passwords=["password", "thisIsABadPassword", "bWZerzZo6fw9ZrDz*YfM6CVj2Ktx(YJd"] -salts=["AAAAAAAAAAAAAAAAAAAAAA==", "ABCDEFGHIJKLMNOPQRSTUV==", "eO+UUcKYL2gnpD51QCc+gnywQ7Eg9tZeLMlf0XXr2zc="] - -for pw in passwords: - for s in salts: - print('Hashed "{}" with salt "{}": \t{}'.format(pw, s, secure_hash(pw, s))) - diff --git a/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/secure_hash.key b/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/secure_hash.key deleted file mode 100644 index ef7097e57e..0000000000 --- a/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/secure_hash.key +++ /dev/null @@ -1,2 +0,0 @@ -secureHashKey=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$pJOGA9sPL+pRzynnwt6G2FfVTyLQdbKSbk6W8IKId8E -secureHashPassword=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$gLSh7ChbHdOIMvZ74XGjV6qF65d9qvQ8n75FeGnM8YM \ No newline at end of file diff --git a/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/secure_hash_128.key b/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/secure_hash_128.key deleted file mode 100644 index ef7097e57e..0000000000 --- a/nifi-toolkit/nifi-toolkit-encrypt-config/src/test/resources/secure_hash_128.key +++ /dev/null @@ -1,2 +0,0 @@ -secureHashKey=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$pJOGA9sPL+pRzynnwt6G2FfVTyLQdbKSbk6W8IKId8E -secureHashPassword=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$gLSh7ChbHdOIMvZ74XGjV6qF65d9qvQ8n75FeGnM8YM \ No newline at end of file