0
フレームワーク(groovy + geb + spock + selenium)にパスワードを保存するための良いアプローチを探しています。現在私はCrypto.Cipherを使用して暗号化と復号化の方法を使用しています。しかし、他の人がそれを行うための良いアプローチをしているかどうかを知りたいと思います。任意の他のアルゴリズム/技術/ツールなど?spockテーブルを使用してコードに表示されないでパスワードを保存および取得する方法
それは何か以下のようになります。
def "test"(){
given:
when
Login(username,password)
then
where:
username | password
"jass" | "testpass123"
//"jass" | decryptPassword("some encrypted value ")
// instead of the actual password we are calling a
// function "decryptPassword" which takes encrypted value and
// returns the actual key to the calling function.
}
これはどのような利点がありますか?パスワードを解読できる場合、実際には平文より安全ではありません。 – jonrsharpe