tis-cryptolib-cps icon

CryptolibCPS

Paquet d’installation silencieuse pour CryptolibCPS

5.2.2-1

  • package: tis-cryptolib-cps
  • name: CryptolibCPS
  • version: 5.2.2-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Joffrey Le Piquet
  • editor: Agence du Numérique en Santé
  • licence: proprietary_free,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: Screenpresso,ScreenpressoBrowserNative,ScreenpressoRpc
  • architecture: all
  • signature_date:
  • size: 10.59 Mo
  • homepage : https://esante.gouv.fr/services/espace-cps/telechargements-libres/cryptolib-cps-windows

package           : tis-cryptolib-cps
version           : 5.2.2-1
architecture      : all
section           : base
priority          : optional
name              : CryptolibCPS
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Joffrey Le Piquet
description       : 
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.4-
sources           : https://esante.gouv.fr/services/espace-cps/telechargements-libres/cryptolib-cps-windows
installed_size    : 
impacted_process  : Screenpresso,ScreenpressoBrowserNative,ScreenpressoRpc
description_fr    : La « Cryptolib CPS » est un logiciel qui permet l’interfaçage entre des applications informatiques et la carte CPS.
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Agence du Numérique en Santé
keywords          : CPS,cryptolib
licence           : proprietary_free,wapt_public
homepage          : https://esante.gouv.fr/services/espace-cps/telechargements-libres/cryptolib-cps-windows
package_uuid      : 782cd209-de86-46e4-a51a-d0257d63c662
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : d26339243e0a087180e376cd5f8e082d814826d5f250d32883335c4227ad8e1c
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-06T12:00:14.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : IyS8cyaP9cUoP75cZMllbYM3q2Bl8FzK2SMRmSDLRAALTUVFhFbzZKUTdmAyHIwuL1nsEmy+hQ37n5fO2DLR8RarHv9APeiCfT0gShReqmYmz5rnXn8bNVMjlJVnfszYXW2Nk95RTj/RxxG/+0N7POWvWR1h9kdmPsYxIeJrcvk1OV04FjP388Ww91WOvYD5ri3km0ByYWoqAUVYxL5pJzRQ/oxCH81aPNN2tiJ4uJtpterA1mpS4cV2lnr+yAf/ZmJrD/v6yYN3AOABcVdr9XDucmKVNH1Ve5u3ezKstz8Nc7DeB1RPipfHzZCCV7PgHnlHXnxDn3YAchPEw0rNOg==

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    bin_name = glob.glob("cryptolibcps-*.exe")[0]

    install_exe_if_needed(
        bin_name,
        name="^Composants Cryptographiques CPS",
        silentflags='/qn',
        min_version=control.get_software_version(),
        )

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *

def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    url = "https://esante.gouv.fr/services/espace-cps/telechargements-libres/cryptolib-cps-windows"

    # Getting latest version from official sources
    print("URL used is: %s" % url)
    for bs_search in bs_find_all(url, "a", "href", proxies=proxies):
        if  bs_search['href'].endswith(".exe"):
            download_url = "https://esante.gouv.fr" + bs_search["href"]
            latest_bin = download_url.split("/")[-1]
            version = latest_bin.split("-")[1].split("_")[0]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)
    # Changing version of the package
    if Version(version) > Version(control.get_software_version()):
        print(f"Software version updated (from: {control.get_software_version()} to: {Version(version)})")
        package_updated = True
    else:
        print(f"Software version up-to-date ({Version(version)})")

    for f in glob.glob(f'*.exe'):
        if f != latest_bin:
            remove_file(f)

    control.set_software_version(version)
    control.save_control_to_wapt()

    return package_updated

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
a39fd6b84e37df00d0fc539e68004dbc392d9e1b40652d21bdba4ae9569a4ce6 : WAPT/control
d26339243e0a087180e376cd5f8e082d814826d5f250d32883335c4227ad8e1c : WAPT/icon.png
50839338b1d1d068d4e3d3069ca02a73a148205ed9e6c50fed57113944806038 : cryptolibcps-5.2.2_0.exe
d4e4fe86161150ebb59e521ee3aca8b246fab515664a603516e6d0ceb67d324a : luti.json
33bf10f7f3909d756bc820b2aeed8e52f233cde3e50d73b67b0e340711b2f6eb : setup.py
46bdb8c838a4e0ed15574ca1dfb4295cc847485432e93b620558d7f206f1453c : update_package.py