turn static encryption key into dynamic