Installing and Running the Encryptor

This section describes how to install and run the Encryptor.

Installing the Encryptor

If Star-Hspice is already installed on your system, place the Encryptor in the directory $installdir/bin to install it. Add the lines that allow the Encryptor to operate to your permit.hsp file in the $installdir/bin directory.

If Star-Hspice is not installed on your system, first install Star-Hspice according to the installation guide and Star-Hspice Release Notes included in your Star-Hspice package, and then follow the instructions in the previous paragraph.


NOTE: If you are running a floating license server, you must stop and restart the server to see the changes to the permit file.

Running the Encryptor

The Encryptor requires three parameters for each subcircuit encrypted: <InFileName>, <OutFileName>, and the key type specifier, Freelib. Enter the following line to encrypt a file.

metaencrypt -i <InfileName> -o <OutFileName> -t Freelib

As the Encryptor reads the input file, it looks for .PROT/.UNPROT pairs and encrypts the text between them. You can encrypt only one file at a time.

To encrypt many files in a directory, use the following shell script to encrypt the files as a group. This script produces a .inc encrypted file for each .dat file in the current directory. The procedure assumes that the unencrypted files are suffixed with .dat.

#!/bin/sh
for i in *.dat
	do
		Base=`basename $i .dat`
		metaencrypt -i $Base.dat -o $Base.inc -t Freelib
	done
.SUBCKT ioinv Pin1 Pin2
.PROT FREELIB					$ Encryption starts here ...
X34%43*27@#^3rx*34&%^#1
^(*^!^HJHD(*@H$!:&*$
dFE2341&*&)(@@3					$ ... and stops here (.UNPROT is encrypted!)
.ENDS
Star-Hspice Manual - Release 2001.2 - June 2001