secret key length validator