NIFI-5209 Removed unused test resources.

Removed RAT exclusion from pom.xml.

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #2798.
This commit is contained in:
Andy LoPresto 2018-06-14 21:54:37 -07:00 committed by Pierre Villard
parent 3752398943
commit 90b8e7f9ff
4 changed files with 0 additions and 34 deletions

View File

@ -163,18 +163,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes combine.children="append">
<exclude>src/test/resources/scrypt.py</exclude>
<!-- use wildcard for below files as tests generate additional files during the build -->
<exclude>**/secure_hash.key</exclude>
<exclude>**/secure_hash_128.key</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -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)))

View File

@ -1,2 +0,0 @@
secureHashKey=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$pJOGA9sPL+pRzynnwt6G2FfVTyLQdbKSbk6W8IKId8E
secureHashPassword=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$gLSh7ChbHdOIMvZ74XGjV6qF65d9qvQ8n75FeGnM8YM

View File

@ -1,2 +0,0 @@
secureHashKey=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$pJOGA9sPL+pRzynnwt6G2FfVTyLQdbKSbk6W8IKId8E
secureHashPassword=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$gLSh7ChbHdOIMvZ74XGjV6qF65d9qvQ8n75FeGnM8YM