Latest News

Wrapper Script - Kingston DataTraveler Vault Privacy 3.0

  • Ivan Ivanov
  • Linux
Wrapper Script -  Kingston DataTraveler Vault Privacy 3.0

Kingston’s DataTraveler® Vault Privacy 3.0 USB Flash drive provides affordable business-grade security with 256-bit AES hardware-based encryption in XTS mode. It protects 100 percent of stored data and enforces complex password protection with minimum characteristics to prevent unauthorized access. For additional peace of mind, the drive locks down and reformats after 10 intrusion attempts.

To use the USB under Linux you can use the below Script. You might need to adjust your /media location if it's different in your case.


#!/bin/bash
# Wrapper Script for Kinston DataTraveler Vault Privacy 3.0

function errecho(){
(>&2 echo "${@}");
}

function usage(){
echo -e "Usage:\n\tksdtvp (login|logout|initialize|forgotpass|about)"
}

function getarch(){
if [[ $(uname -m) = "x86_64" ]]; then
echo "64"
elif [[ $(uname -m) =~ [i.86] ]]; then
echo "32"
fi
}

function main(){
_scriptspath="/media/$(whoami)/DTVP301/linux/linux$(getconf LONG_BIT)"

if [[ ! "${@}" ]]; then
errecho "Missing Argument"
usage
exit 1
elif [[ ! -d "${_scriptspath}" ]]; then
errecho "Device Not Found"
exit 1
else
case "${1}" in
"login" ) ${_scriptspath}/dtvp_login ;;
"logout" ) ${_scriptspath}/dtvp_logout ;;
"about" ) ${_scriptspath}/dtvp_about ;;
"initialize" ) ${_scriptspath}/dtvp_initialize ;;
"forgotpass" ) ${_scriptspath}/dtvp_forgotpassword ;;
* ) errecho "Invalid Argument" ; usage ; exit ;;
esac
fi
}

main "${@}"
28 seconds