RandomKeyGenerator extracted