Notices: This section not yet converted to new layout. Download stats are rolling back out.

KeePass Plugin KeeChallenge

1.5.20180413

Package test results are passing.

This package was approved by moderator gep13 on 4/16/2018.

A plugin for KeePass2 to add Yubikey challenge-response capability.

Documentation

To install KeePass Plugin KeeChallenge, run the following command from the command line or from PowerShell:

C:\> choco install keepass-plugin-keechallenge

To upgrade KeePass Plugin KeeChallenge, run the following command from the command line or from PowerShell:

C:\> choco upgrade keepass-plugin-keechallenge

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    $zipFolder  = 'KeeChallenge_1.5'
    
    # create temp directory
    do {
        $tempPath = Join-Path -Path $env:TEMP -ChildPath ([System.Guid]::NewGuid().ToString())
    } while (Test-Path $tempPath)
    New-Item -ItemType Directory -Path $tempPath | Out-Null
    
    $packageArgs = @{
        packageName   = $env:ChocolateyPackageName
        unzipLocation = $tempPath
        url           = 'https://github.com/brush701/keechallenge/releases/download/1.5/KeeChallenge_1.5.zip'
        checksum      = '7a691e37858bee3a69ba81ed1c7ce6dd42de4096dfe9cd7b7547566399d3f369'
        checksumType  = 'SHA256'
    }
    
    $packageSearch = 'KeePass Password Safe*'
    $installPath = ''
    
    Write-Verbose "Searching for Keepass install location."
    if ([array]$key = Get-UninstallRegistryKey -SoftwareName $packageSearch) {
        $installPath = $key.InstallLocation
    }
    
    if ([string]::IsNullOrEmpty($installPath)) {
        Write-Verbose "Searching '$env:ChocolateyBinRoot' for portable install..."
        $portPath = Join-Path -Path $env:ChocolateyBinRoot -ChildPath "keepass"
        $installPath = Get-ChildItem -Directory "$portPath*" -ErrorAction SilentlyContinue
    }
    
    if ([string]::IsNullOrEmpty($installPath)) {
      Write-Verbose "Searching '$env:Path' for unregistered install..."
      $installFullName = Get-Command -Name keepass -ErrorAction SilentlyContinue
      if ($installFullName) {
          $installPath = Split-Path $installFullName.Path -Parent
      }
    }
    
    if ([string]::IsNullOrEmpty($installPath)) {
      throw "$($packageSearch) not found."
    }
    else {
        Write-Verbose "Found Keepass install location at '$installPath'."
    }
    
    Install-ChocolateyZipPackage @packageArgs
    
    # copy the items from the chocolatey install folder to the Keepass install location
    $sourcePath = Join-Path -Path $packageArgs.unzipLocation -ChildPath $zipFolder
    Get-ChildItem -Path $sourcePath -Recurse | ForEach-Object {
        Copy-Item -Path $_.FullName -Destination ($_.FullName.Replace($sourcePath, $installPath)) -Force -ErrorAction SilentlyContinue
    }
    
    if (Get-Process -Name 'KeePass' -ErrorAction SilentlyContinue ) {
        Write-Warning "Keepass is currently running. '$($packageArgs.packageName)' will be available at next restart."
    }
    else {
        Write-Host "'$($packageArgs.packageName)' will be loaded the next time KeePass is started."
    }
    
  • tools\chocolateyUninstall.ps1 Show
    $ErrorActionPreference = 'Stop';
    
    $toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
    $zipFolder  = 'KeeChallenge_1.5'
    
    # find Keepass installation folder
    $packageSearch = 'KeePass Password Safe*'
    $installPath = ""
    
    Write-Verbose "Searching for Keepass install location."
    if ([array]$key = Get-UninstallRegistryKey -SoftwareName $packageSearch) {
        $installPath = $key.InstallLocation
    }
    
    if ([string]::IsNullOrEmpty($installPath)) {
        Write-Verbose "Searching $env:ChocolateyBinRoot for portable install..."
        $portPath = Join-Path -Path $$toolsDir -ChildPath "keepass"
        $installPath = Get-ChildItem -Directory $portPath* -ErrorAction SilentlyContinue
    }
    
    if ([string]::IsNullOrEmpty($installPath)) {
      Write-Verbose "Searching $env:Path for unregistered install..."
      $installFullName = (Get-Command keepass -ErrorAction SilentlyContinue).Path
      if (!$installFullName) {
          $installPath = Split-Path $installFullName -Parent
      }
    }
    
    if ([string]::IsNullOrEmpty($installPath)) {
      throw "$($packageSearch) not found."
    }
    else {
        Write-Verbose "Found Keepass install location at $installPath"
    }
    
    Write-Verbose "Deleting package files from Keepass at $installPath"
    $sourcePath = Join-Path -Path $toolsDir -ChildPath $zipFolder
    Get-ChildItem -Path $sourcePath -Recurse | ForEach {
        Remove-Item -Path $_.FullName.Replace($sourcePath, $installPath) -Recurse -ErrorAction SilentlyContinue
    }

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Ben Rush

Tags

Release Notes

https://github.com/brush701/keechallenge#changes

Version History

Version Downloads Last updated Status
KeePass Plugin KeeChallenge 1.5 371 Monday, March 6, 2017 approved

Discussion for the KeePass Plugin KeeChallenge Package

Ground rules:

  • This discussion is only about KeePass Plugin KeeChallenge and the KeePass Plugin KeeChallenge package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or KeePass Plugin KeeChallenge, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok