mirror of https://github.com/apache/nifi.git
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:
parent
3752398943
commit
90b8e7f9ff
|
@ -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>
|
||||
|
|
|
@ -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)))
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
secureHashKey=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$pJOGA9sPL+pRzynnwt6G2FfVTyLQdbKSbk6W8IKId8E
|
||||
secureHashPassword=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$gLSh7ChbHdOIMvZ74XGjV6qF65d9qvQ8n75FeGnM8YM
|
|
@ -1,2 +0,0 @@
|
|||
secureHashKey=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$pJOGA9sPL+pRzynnwt6G2FfVTyLQdbKSbk6W8IKId8E
|
||||
secureHashPassword=$s0$40801$AAAAAAAAAAAAAAAAAAAAAA$gLSh7ChbHdOIMvZ74XGjV6qF65d9qvQ8n75FeGnM8YM
|
Loading…
Reference in New Issue